Macro problem driving me crazy


Posted by tom l on January 15, 2002 12:59 PM

I've created a macro to format and sort an excel database. The macro selects the last cell used in each column, formats the font type and size and centers the text or numbers horizontally and vertically. I can't format one column which is dollar amounts. I want it to be in accounting format. I've run a sample macro to see what the code looks like but it doesn't work when I use it in my macro.

Do I need to redim the range of that column? Can I use the Range("Fx",Range("fxxxx").End(xlUp)).Select type of construct?

Thanks in advance



Posted by bob Umlas on January 15, 2002 2:10 PM

Range("F1",Range("F65536").end(xlup)).Numberformat = "_($* #,##0.00_);_($* (#,##0.00);_($* ""-""??_);_(@_)"