still learning
Well-known Member
- Joined
- Jan 15, 2010
- Messages
- 838
- Office Version
- 365
- Platform
- Windows
Hi
Just wondering……..
When I open a worksheet, the advance filter looks for criteria from another sheet in the same workbook.
One of the columns (B:B) seems to put the extracted data in with the format to the “left”.
The data is always a text
What I did was ran the macro recorder and have the whole column formatted to “center”.
(the cursor is at A1 when this part of the macro starts and the cursor goes back to A1 to continue the macro)
My question is :
Why does the macro recorder make the column as A:A instead of B:B
mike
Just wondering……..
When I open a worksheet, the advance filter looks for criteria from another sheet in the same workbook.
One of the columns (B:B) seems to put the extracted data in with the format to the “left”.
The data is always a text
What I did was ran the macro recorder and have the whole column formatted to “center”.
(the cursor is at A1 when this part of the macro starts and the cursor goes back to A1 to continue the macro)
My question is :
Why does the macro recorder make the column as A:A instead of B:B
VBA Code:
ActiveCell.Offset(0, 1).Columns("A:A").EntireColumn.Select
With Selection
.HorizontalAlignment = xlCenter
ActiveCell.Offset(0, 1).Select
End With
mike