Brett Thompson
New Member
- Joined
- Oct 5, 2020
- Messages
- 4
- Office Version
- 365
- Platform
- Windows
Hello all
Hoping for some help on a simple workbook we would like to put together...
Using a combo box from form control; we would like the 'cell link' value, derived from the value selected in the combo box, to automatically trigger a macro. As a concept, the workbookcurrently has 2 macros, but there would be more when finished.
When I point the VBA at a manually changing cell, the macros run & hide / unhide the columns as excepted, but we can't get it to work from the result of the combo box.
Hope this makes sense? Thanks for reading & any questions, please ask...
Many thanks
B
Hoping for some help on a simple workbook we would like to put together...
Using a combo box from form control; we would like the 'cell link' value, derived from the value selected in the combo box, to automatically trigger a macro. As a concept, the workbookcurrently has 2 macros, but there would be more when finished.
When I point the VBA at a manually changing cell, the macros run & hide / unhide the columns as excepted, but we can't get it to work from the result of the combo box.
VBA Code:
Sub ReEnableEvents()
Application.EnableEvents = True
End Sub
Sub Worksheet_Calculate()
Dim target As Range
Set target = Range("D2")
If Not Intersect(target, Range("D2")) Is Nothing Then
End If
If target.Value = 1 Then
Call ShowAll
End If
If target.Value = 2 Then
Call ShowHandS
End If
End Sub
Many thanks
B
Last edited by a moderator: