I have a problem passing variables from sheet code to module code. Here is the sheet code:
Public Sub Update()
Dim plan As String
plan = "PlanB"
'Code stuff here
Call LookForManualData(plan)
'Code stuff here
End Sub
And here is the module:
Public Sub LookForManualData(plan As String)
'Code stuff here
MsgBox plan
'Code stuff here
End Sub
Please note, that the code is simplified, and irrelevant parts are excluded. Also, that I have tried pretty much possibility for defining plan as a variable, although there has to be be something that hasn't came in my mind. The basic idea is to let the module know what plan is to be able to use it, because now it's empty.
plan. I'd suggest searching the procedure for something likeplan = "to see if it's being changed.