Delete zeros in Excel...

scubadiver007

Registered User.
Local time
Yesterday, 18:50
Joined
Nov 30, 2010
Messages
317
This is a part of my code

Code:
    With xlSheet
        .Range("D6").CopyFromRecordset rst
        
    End With

Can I include an extra command in there to delete all whole cases of zeros before saving the sheet?
 
Replace(.Range("D6"),"0","")

Dirty but has worked for me in the past. However, I normally do it by cell reference.


Hope this helps

Steve
 

Users who are viewing this thread

Back
Top Bottom