Quote:
|
Originally Posted by scobad
I Have a template. When you click the button it is supposed to :
Select A3:c500
Open a new sheet
Paste values ( from above )
Format Row C1:c500
In a NUMBER format "0.00"
Save sheet as c:\Name.CSV
then CLOSE the CSV file. It is NOT working correctly..Can you assit?
|
What kind of error are you getting? Which line is the problem?
Note, sometimes it is better NOT to select to do work on a range. For instance, change
Code:
range("A3:C500").Select
Selection.Copy
to
Code:
Range("A3:A500").Copy
So also, here:
Code:
range("c1:c500").Select
Selection.NumberFormat = "0.00"
to
Code:
range("c1:c500").NumberFormat = "0.00"
Is there a need to select the range again? [3rd line - range("A3:c500").Select]