excelgirl0610
New Member
- Joined
- Dec 20, 2016
- Messages
- 5
Hi there,
I am creating a simple grocery worksheet that has some instructions on it that I'd like to give users the options to hide/show. I made a button, created the macro, inserted it onto a module specifically for that button, and then tested it to see if it works. The first time I clicked it, the button did exactly like it was supposed to. The second time I tried, it won't do it. Now instead, a duplicate button pops up for a brief moment when I click the button, but nothing else happens. What am I doing wrong? I am using Excel 2016 btw. Here is what the code currently looks like:
Private Sub HideInstructions_Click ()
'
' HideColumn Macro
'
'
Columns ("A:I") .Select
Selection.EntireColumn.Hidden = True
End Sub
Am I doing something wrong here? Workbook was protected beforehand, but I disabled those functions. Also, VBA is not password protected in any way.
I'm sorry if this sounds really silly, but I am re-learning how to use Macros (and I actually never learned VBA!) so just hoping someone here can guide me. Thank you!
I am creating a simple grocery worksheet that has some instructions on it that I'd like to give users the options to hide/show. I made a button, created the macro, inserted it onto a module specifically for that button, and then tested it to see if it works. The first time I clicked it, the button did exactly like it was supposed to. The second time I tried, it won't do it. Now instead, a duplicate button pops up for a brief moment when I click the button, but nothing else happens. What am I doing wrong? I am using Excel 2016 btw. Here is what the code currently looks like:
Private Sub HideInstructions_Click ()
'
' HideColumn Macro
'
'
Columns ("A:I") .Select
Selection.EntireColumn.Hidden = True
End Sub
Am I doing something wrong here? Workbook was protected beforehand, but I disabled those functions. Also, VBA is not password protected in any way.
I'm sorry if this sounds really silly, but I am re-learning how to use Macros (and I actually never learned VBA!) so just hoping someone here can guide me. Thank you!