Format Cells ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The following code snippet is my attempt to format the last cell in column C as percent with 2 decimal places.

xlWs.Range("c1").End(xlDown).Selection.PercentFormat = "0.00%"

Need help.
 
Forrest, try this for the last cell with date in C
Range("C65536").End(xlUp).NumberFormat = "0.00%"


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 97
** remove news from my email address to reply by email **
Forrest said:
The following code snippet is my attempt to format the last cell in column
C as percent with 2 decimal places.
 
This works for me,

Range("C1:C" & Cells(Rows.Count, "C").End(xlUp).Row).NumberFormat = "0.00%"

--
Regards,
Rocky McKinley


Forrest said:
The following code snippet is my attempt to format the last cell in column
C as percent with 2 decimal places.
 
Back
Top