Johnny Thunder
Well-known Member
- Joined
- Apr 9, 2010
- Messages
- 693
- Office Version
- 2016
- Platform
- MacOS
Hello all,
I have been working on a macro project and have come to a halt.
My macro is looking at a named Range (RunMacroRule) to get a variable 1-3. depending on the variable it will do an action. See code below.
Right now for some reason the code is not running and I am getting the cursor highlighting the "Case Is = 1" saying the "Sub or function is not defined".
Can anyone see an issue with this code or maybe present an alternative. Thanks in advance.
I have been working on a macro project and have come to a halt.
My macro is looking at a named Range (RunMacroRule) to get a variable 1-3. depending on the variable it will do an action. See code below.
Right now for some reason the code is not running and I am getting the cursor highlighting the "Case Is = 1" saying the "Sub or function is not defined".
Can anyone see an issue with this code or maybe present an alternative. Thanks in advance.
Code:
Sub CSV_Transfer_Rules()
Select Case Sheets("License Fee Calculator").Range("RunMacroRule").Value
Case Is = 0
Call EnterHeaderLFC
Call EnterHeaderODM
Case Is = 1
Call CSV_TransferLFC
Call EnterHeaderODM
Case Is = 2
Call CSV_TransferODM
Call EnterHeaderLFC
Case Is = 3
Call CSV_Transfer_Combined
End Select
End Sub