
Originally Posted by
ScaniaR730
How do i change the formatting without destroying the Excel itself? :P
For an example,
want to center align the data
If you want the result is in horizontal center alignment,
add this line :
rgBorder.HorizontalAlignment = xlCenter
right after this code line
Set rgBorder = Range(oResult, oResult.Offset(rc, ofst - 1))
and it want to remove column a + b, but not sure if column is used for anything?
Sorry once again, I'm limited in English, so I can't understand what you mean.
Did you mean my code (sub test1) is trying to remove column A and B in sheet1,
but the code is not sure if column A and column B in sheet1 is used or not ?
Bookmarks