B
BM
I have been trying to set up a macro which will run
another macro if a certain condition is met. Previously, I
have been given the following advice:
However, I am certainly no macro expert and I am still
experiencing problems. I am getting a message saying "sub
or function not defined" and it is highlighting
RunOtherMacro in the third line above.
I have changed RunOtherMacro to the name of the other
macro that I actually need to run, but I still get "sub or
function not defined".
When I look on Visual Basic Help it tells me that I need
look at the references and map DAO350.dll. I have done
this and it makes no difference to the error I am getting.
Can anybody help?
Thanks
another macro if a certain condition is met. Previously, I
have been given the following advice:
Sub StartHere()
If Range("C1").Value =1 Then
RunOtherMacro
End If
End Sub
Sub RunOtherMacro()
msgbox "Got Here"
End Sub
However, I am certainly no macro expert and I am still
experiencing problems. I am getting a message saying "sub
or function not defined" and it is highlighting
RunOtherMacro in the third line above.
I have changed RunOtherMacro to the name of the other
macro that I actually need to run, but I still get "sub or
function not defined".
When I look on Visual Basic Help it tells me that I need
look at the references and map DAO350.dll. I have done
this and it makes no difference to the error I am getting.
Can anybody help?
Thanks