DummyForAccess
Technical User
Help, Here's the code I have so far. The error I'm getting is that it's expecting a sub or function. How can I call a sub based on the value contained in cell O2?
Sub M_Run_Macro_D2()
Dim mcro_nm As String
Dim windw As String
Sheets("Macro List").Select
windw = Range("N2").Value
Sheets("Macro List").Select
windw = Range("O2").Value
mcro_nm = Range("O2").Value
Windows(windw).Activate
Call mcro_nm
Windows("MonthendMacros.xls").Activate
Sheets("Day One").Select
End Sub
Sub M_Run_Macro_D2()
Dim mcro_nm As String
Dim windw As String
Sheets("Macro List").Select
windw = Range("N2").Value
Sheets("Macro List").Select
windw = Range("O2").Value
mcro_nm = Range("O2").Value
Windows(windw).Activate
Call mcro_nm
Windows("MonthendMacros.xls").Activate
Sheets("Day One").Select
End Sub