giblahblah
New Member
- Joined
- Jun 12, 2019
- Messages
- 3
I am BRAND NEW to VBA coding and have tried to figure out how to write what should be a simple code with zero success. I'd like to attach the workbook, but I don't have privileges in this forum.
Summary of goal:
I have one tab called "Instructions TM1" and another tab called "Ops and ADS Summary"
I need code for:
If on the "Instructions TM1" tab cell B37 says “Day_16” then hide columns H, V, AE, and AS on the "Ops and ADS Summary" tab.
If on the "Instructions TM1" tab cell B37 says “Day_21” then unhide columns H, V, AE, and AS on the "Ops and ADS Summary" tab.
I've tried multiple iterations of codes I've found on forums with no luck. Can anyone write out code for this scenario that I can test? Also, any explanations on how Dim functions work is appreciated. I believe not defining variables may be my problem?
Thanks in advance.
-Jeff
Summary of goal:
I have one tab called "Instructions TM1" and another tab called "Ops and ADS Summary"
I need code for:
If on the "Instructions TM1" tab cell B37 says “Day_16” then hide columns H, V, AE, and AS on the "Ops and ADS Summary" tab.
If on the "Instructions TM1" tab cell B37 says “Day_21” then unhide columns H, V, AE, and AS on the "Ops and ADS Summary" tab.
I've tried multiple iterations of codes I've found on forums with no luck. Can anyone write out code for this scenario that I can test? Also, any explanations on how Dim functions work is appreciated. I believe not defining variables may be my problem?
Thanks in advance.
-Jeff