Hi All,
I developed a VBA code for formatting my excel reports say from Column B to D, F to G to change the font. color etc. As this stage I am doing a certain range say from Row 11 to 195 to avoid any Wrap text area as if i just select as Range("B:D,F:G").Select, then it will format more columns and rows than i needed to cause messy reporting format. Is there anyway to write a VBA code to stop the formatting to a particular row before reaching a wrap text area? So in my example the wrap text happened in Row 196 which I need to manually change my code. thanks a lot
Range("B11").Select
Range("B11:D195,F11:G195").Select
Selection.NumberFormat = "#,##0_);[Red](#,##0)"
I developed a VBA code for formatting my excel reports say from Column B to D, F to G to change the font. color etc. As this stage I am doing a certain range say from Row 11 to 195 to avoid any Wrap text area as if i just select as Range("B:D,F:G").Select, then it will format more columns and rows than i needed to cause messy reporting format. Is there anyway to write a VBA code to stop the formatting to a particular row before reaching a wrap text area? So in my example the wrap text happened in Row 196 which I need to manually change my code. thanks a lot
Range("B11").Select
Range("B11:D195,F11:G195").Select
Selection.NumberFormat = "#,##0_);[Red](#,##0)"