Romano_odK
Active Member
- Joined
- Jun 4, 2020
- Messages
- 380
- Office Version
- 365
- Platform
- Windows
Good afternoon,
In my table "ItemImport" I have the need sometimes to hide a few columns. To hide these with VBA is not that hard, but if you want to do that with one button then its a different story. Would this be possible and so that the button changes its text also. So from Hide to Unhide as text. The below action is what I need.
Thank you in advance and have a great day.
In my table "ItemImport" I have the need sometimes to hide a few columns. To hide these with VBA is not that hard, but if you want to do that with one button then its a different story. Would this be possible and so that the button changes its text also. So from Hide to Unhide as text. The below action is what I need.
Thank you in advance and have a great day.
VBA Code:
Columns("Q:AT").Select
Selection.EntireColumn.Hidden = True