Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
From the Immediate window, this statement:
Application.Run "BofQUtilities.xla!InDirect_Menu_Routines.Test 1" results in the following macro successfully running: Sub Test1() MsgBox ("Success") End Sub but this statement: Application.Run _ "BofQUtilities.xla!InDirect_Menu_Routines.ReNumber BofQPages(myCell, ws, £Col)" results in an error message, saying the macro cannot be found. The macro exists, and I'm fairly sure there are no typos. Any ideas please? Regards. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.524 / Virus Database: 321 - Release Date: 06/10/2003 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Stuart,
Haven't tried it myself, but try Application.Run _ ("BofQUtilities.xla!InDirect_Menu_Routines.ReNumbe rBofQPages", myCell, ws, £Col) -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Stuart" wrote in message ... From the Immediate window, this statement: Application.Run "BofQUtilities.xla!InDirect_Menu_Routines.Test 1" results in the following macro successfully running: Sub Test1() MsgBox ("Success") End Sub but this statement: Application.Run _ "BofQUtilities.xla!InDirect_Menu_Routines.ReNumber BofQPages(myCell, ws, £Col)" results in an error message, saying the macro cannot be found. The macro exists, and I'm fairly sure there are no typos. Any ideas please? Regards. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.524 / Virus Database: 321 - Release Date: 06/10/2003 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, but now a compile error ..."expected expression".
"Bob Phillips" wrote in message ... Stuart, Haven't tried it myself, but try Application.Run _ ("BofQUtilities.xla!InDirect_Menu_Routines.ReNumbe rBofQPages", myCell, ws, £Col) -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Stuart" wrote in message ... From the Immediate window, this statement: Application.Run "BofQUtilities.xla!InDirect_Menu_Routines.Test 1" results in the following macro successfully running: Sub Test1() MsgBox ("Success") End Sub but this statement: Application.Run _ "BofQUtilities.xla!InDirect_Menu_Routines.ReNumber BofQPages(myCell, ws, £Col)" results in an error message, saying the macro cannot be found. The macro exists, and I'm fairly sure there are no typos. Any ideas please? Regards. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.524 / Virus Database: 321 - Release Date: 06/10/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.524 / Virus Database: 321 - Release Date: 07/10/2003 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, but same error msg 1004.
Macro cannot be found. Regards. "S?ren Remfeldt" wrote in message om... Hi Stuart! Try this instead Application.Run _ "BofQUtilities.xla!InDirect_Menu_Routines.ReNumber BofQPages myCell, ws,£Col without the"()"..... It might work! ;-) Søren Remfeldt "Stuart" wrote in message ... From the Immediate window, this statement: Application.Run "BofQUtilities.xla!InDirect_Menu_Routines.Test 1" results in the following macro successfully running: Sub Test1() MsgBox ("Success") End Sub but this statement: Application.Run _ "BofQUtilities.xla!InDirect_Menu_Routines.ReNumber BofQPages(myCell, ws, £Col)" results in an error message, saying the macro cannot be found. The macro exists, and I'm fairly sure there are no typos. Any ideas please? Regards. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.524 / Virus Database: 321 - Release Date: 06/10/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.524 / Virus Database: 321 - Release Date: 07/10/2003 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Without taking time to setup variables (I passed all strings), this worked ok:
Option Explicit Sub testme() Dim myCell As String Dim ws As String Dim myCol As String myCell = "hi" ws = "there" myCol = "!" Application.Run _ "book3.xla!InDirect_Menu_Routines.ReNumberBofQPage s", _ myCell, ws, myCol End Sub And the macro looked like: Option Explicit Sub ReNumberBofQPages(myCell As String, ws As String, myCol As String) MsgBox myCell & "--" & ws & "--" & myCol End Sub Stuart wrote: From the Immediate window, this statement: Application.Run "BofQUtilities.xla!InDirect_Menu_Routines.Test 1" results in the following macro successfully running: Sub Test1() MsgBox ("Success") End Sub but this statement: Application.Run _ "BofQUtilities.xla!InDirect_Menu_Routines.ReNumber BofQPages(myCell, ws, £Col)" results in an error message, saying the macro cannot be found. The macro exists, and I'm fairly sure there are no typos. Any ideas please? Regards. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.524 / Virus Database: 321 - Release Date: 06/10/2003 -- Dave Peterson |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The Run statement worked fine.
Many thanks. Regards. "Dave Peterson" wrote in message ... Without taking time to setup variables (I passed all strings), this worked ok: Option Explicit Sub testme() Dim myCell As String Dim ws As String Dim myCol As String myCell = "hi" ws = "there" myCol = "!" Application.Run _ "book3.xla!InDirect_Menu_Routines.ReNumberBofQPage s", _ myCell, ws, myCol End Sub And the macro looked like: Option Explicit Sub ReNumberBofQPages(myCell As String, ws As String, myCol As String) MsgBox myCell & "--" & ws & "--" & myCol End Sub Stuart wrote: From the Immediate window, this statement: Application.Run "BofQUtilities.xla!InDirect_Menu_Routines.Test 1" results in the following macro successfully running: Sub Test1() MsgBox ("Success") End Sub but this statement: Application.Run _ "BofQUtilities.xla!InDirect_Menu_Routines.ReNumber BofQPages(myCell, ws, £Col)" results in an error message, saying the macro cannot be found. The macro exists, and I'm fairly sure there are no typos. Any ideas please? Regards. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.524 / Virus Database: 321 - Release Date: 06/10/2003 -- Dave Peterson --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.524 / Virus Database: 321 - Release Date: 06/10/2003 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
aauugghhh...#div/o problems & various average formula problems | Excel Worksheet Functions | |||
Problems in running a macro in another workbook | Excel Discussion (Misc queries) | |||
Running XY chart labeller using a macro's parameters and arguments. | Charts and Charting in Excel | |||
Office Small Business ver. 2003 has problems running in XP | Excel Discussion (Misc queries) | |||
More UDF problems; some won't update, some won't stop running! | Excel Programming |