ChetShannon
Board Regular
- Joined
- Jul 27, 2007
- Messages
- 133
- Office Version
- 365
- Platform
- Windows
This should be an easy one I'm guessing. I have a module and a user form in which I have some public variables declared in order to pass values to and from the user form back to the single main code module. I then copied the entire module and form and created a new module and new user form to add some new features to the code without wrecking the previous (working well) code. So I basically created a fresh copy of this working code and I'm working on adding features to the new code. (That's when the ambiguous errors started.)
The problem I'm having is the new code is coming up with errors of "Ambiguous name detected: FinalStatus". It seems like this is happening because I have the same variable names PUBLICLY declared in the original code and the new code has the same variable names and there is hence confusion. But don't I have to declare the variables as PUBLIC in order to pass the variable information back from the user form to the main code? (Maybe not?)..
What I'm showing below are my publicly defined variables that pass the values to and from the user form.
Public TextString2 As String
Public FormTextToShow2 As String
Public PrelimStatus As Boolean
Public FinalStatus As Boolean
'Public Locationx As String
Public MinMinutesToKeep As String
Public FilterOut As Boolean
Public SaveToDesktop2 As Boolean
Public SaveToMyDocs2 As Boolean
Public SaveToFltSched As Boolean
Public SaveToGeneral As Boolean
Public RunStatus As Boolean
Public SaveNo As Boolean
Sub FLT_SCHED_CHANGE_FORMATTER_V8Exp()
The problem I'm having is the new code is coming up with errors of "Ambiguous name detected: FinalStatus". It seems like this is happening because I have the same variable names PUBLICLY declared in the original code and the new code has the same variable names and there is hence confusion. But don't I have to declare the variables as PUBLIC in order to pass the variable information back from the user form to the main code? (Maybe not?)..
What I'm showing below are my publicly defined variables that pass the values to and from the user form.
Public TextString2 As String
Public FormTextToShow2 As String
Public PrelimStatus As Boolean
Public FinalStatus As Boolean
'Public Locationx As String
Public MinMinutesToKeep As String
Public FilterOut As Boolean
Public SaveToDesktop2 As Boolean
Public SaveToMyDocs2 As Boolean
Public SaveToFltSched As Boolean
Public SaveToGeneral As Boolean
Public RunStatus As Boolean
Public SaveNo As Boolean
Sub FLT_SCHED_CHANGE_FORMATTER_V8Exp()