Hello
I am trying to call a macro from another, but the macro name will variable.
I have a macro that runs down a list of report codes (eg R0001), each of which has a macro of the same name.
I've successfully managed to step down the list and reference the codes in a MsgBox, but cannot get it to run a macro of that same name. The problem seems to lie in this bit of code:
' do stuff to get to cell
rnumber = ActiveCell.Text
Run (rnumber)
' do that report (eg R0001)
' go to top until
Everything else I want to do works fine, but this one bit of code has been getting the better of me for days - so any help would be gratefully received!
cheers
diddon
I am trying to call a macro from another, but the macro name will variable.
I have a macro that runs down a list of report codes (eg R0001), each of which has a macro of the same name.
I've successfully managed to step down the list and reference the codes in a MsgBox, but cannot get it to run a macro of that same name. The problem seems to lie in this bit of code:
' do stuff to get to cell
rnumber = ActiveCell.Text
Run (rnumber)
' do that report (eg R0001)
' go to top until
Everything else I want to do works fine, but this one bit of code has been getting the better of me for days - so any help would be gratefully received!
cheers
diddon