Hey all,
I'm updating my workbook to add some more features that would make my workbook more userfriendly.
I'm trying to find a macro that would hide specific combination of columns based on what I want to do when i open this workbook so that i could avoid wasting time to keep tabbing and finish punching the data in lesser time.
To do this i'm planning to make a switchboard page in my first sheet with a list and give them radio buttons:
Full View Unhide all Columns
New Trip Entry Hide columns C,D,E,J,K,L,M,N,Z-AL,AN-AU
Acknowledgement Entry Hide columns E,M,N,S,T,U,V,W,X,Y,Z,AA,AF-AU
Bill Entry ....
Receipt Entry ....
Balance Payment Entry ....
Delay Report ....
Vehicle Running Report ....
I tried recording a macro to do the above but it is unbelievably long and ineffective as it hides all the columns from A to AU. Somehow, I did manage to find something
But the Above code works on the same worksheet as the button is in... and I want it to work on "Datasheet" worksheet![]()
Private Sub OptionButton2_Click() Range("A1,C1,F1,H1,J1,K1,L1,M1,N1,O1,P1,Q1,R1,V1,W1,X1").EntireColumn.Hidden = True End Sub
I know I have to add activate sheet code but i dont know the language.
Edit: I just realised there is one more thing that needs to be done before actually hiding columns and that is to unhide all columns.
Please Help.
Thanks And Regards
Mohit
Bookmarks