![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 69
|
My top row is merged (10 columns together). I wrote a macro to format a column as a percentage:
Columns("C:C").Select Selection.NumberFormat = "0%" Manually, it works fine to click on the column heading and format it. But by doing it via macro, since the top row is merged it changed ALL of my number columns to a percentage. How do I get around this?? thanks!! |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
Columns("C:C").NumberFormat = "0%"
__________________
Barrie Davidson "You're only given a little spark of madness. You mustn't lose it." - Robin Williams |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|