Hi, I have created three macros that will format the worksheet three different ways, for printing purposes. (changes on amount of information filled in tables). Anyways, currently I have those three macros assigned to three different icons. I would like to change this so that the appropriate macro is run based off a user input cell when that cell is changed.
If anyone has any other ideas of Code structure that would be greatly appreciated. I am new at writing my own codes in VBA and are not sure about all my options.
Thanks,
To rephrase, I have a validation list with three options, (A,B,C) with three corresponding macros (1,2,3). When the input cell is A, I want Macro1 to run. Input=B, then Macro2. Input=C, then Macro3. This is what I have so far, but can not get it to work.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = InputCell Then
If InputCell = A Then
Call Macro1
End If
If InputCell = B Then
Call Macro2
End If
If InputCell = C Then
Call Macro 3
End If
End If
End Sub
If anyone has any other ideas of Code structure that would be greatly appreciated. I am new at writing my own codes in VBA and are not sure about all my options.
Thanks,