How to define Subroutines and functions?
I know its strange but I need to be able to open a new mxd into an existing one. Yes, it can be done. All I need to do is set a path to a variable(most likely iApplication). From dialog box, user selects a district name to open that districts mxd. I believe the code would be Application.iApplication.OPenDocument(Path to folder). But I am having trouble with the sub and function declaration. It keeps giving me an error of sub and function not declared. Sample is below : Private Sub cmdMap_Click()
Dim District As String Dim map As mapDocument Set map = New mapDocument map.District = ComboBox("Abilene") Call DrawTasks.RenderMap("Abilene") Application.IApplication.OpenDocument ("K:TASS......")