Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Calling Subs in other WB

I'm trying to have a macro run a sub in another workbook, but I keep getting
an error. I use:

Application.Run "FAMOUS Intermediate.xls!LinksToValues_All"

but it tells me it can't be found. The wb is open and there are no typos.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Calling Subs in other WB

Hi,

Try it this way:

Application.Run "'FAMOUS Intermediate.xls'!LinksToValues_All"


--
Hope that helps.

Vergel Adriano


"san-avsc" wrote:

I'm trying to have a macro run a sub in another workbook, but I keep getting
an error. I use:

Application.Run "FAMOUS Intermediate.xls!LinksToValues_All"

but it tells me it can't be found. The wb is open and there are no typos.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 182
Default Calling Subs in other WB

Hi san,

Could you check wether sub LinksToValues_All is not a private sub in
workbook 'FAMOUS Intermediate.xls' module.?

Change private sub to sub
--

Regards,

Halim


"Vergel Adriano" wrote:

Hi,

Try it this way:

Application.Run "'FAMOUS Intermediate.xls'!LinksToValues_All"


--
Hope that helps.

Vergel Adriano


"san-avsc" wrote:

I'm trying to have a macro run a sub in another workbook, but I keep getting
an error. I use:

Application.Run "FAMOUS Intermediate.xls!LinksToValues_All"

but it tells me it can't be found. The wb is open and there are no typos.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Calling Subs in other WB

It's not a private sub. Thanks though.

"Halim" wrote:

Hi san,

Could you check wether sub LinksToValues_All is not a private sub in
workbook 'FAMOUS Intermediate.xls' module.?

Change private sub to sub
--

Regards,

Halim


"Vergel Adriano" wrote:

Hi,

Try it this way:

Application.Run "'FAMOUS Intermediate.xls'!LinksToValues_All"


--
Hope that helps.

Vergel Adriano


"san-avsc" wrote:

I'm trying to have a macro run a sub in another workbook, but I keep getting
an error. I use:

Application.Run "FAMOUS Intermediate.xls!LinksToValues_All"

but it tells me it can't be found. The wb is open and there are no typos.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Calling Subs in other WB

That did it - thanks!

"Vergel Adriano" wrote:

Hi,

Try it this way:

Application.Run "'FAMOUS Intermediate.xls'!LinksToValues_All"


--
Hope that helps.

Vergel Adriano


"san-avsc" wrote:

I'm trying to have a macro run a sub in another workbook, but I keep getting
an error. I use:

Application.Run "FAMOUS Intermediate.xls!LinksToValues_All"

but it tells me it can't be found. The wb is open and there are no typos.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
calling subs Bob Phillips Excel Programming 0 December 18th 06 03:51 PM
Calling subs from different workbooks R.VENKATARAMAN Excel Programming 0 September 26th 04 03:11 PM
calling subs Mike Excel Programming 4 April 8th 04 08:22 PM
calling subs, Doesn't seem to run fisrt time? CAA[_21_] Excel Programming 2 April 1st 04 08:23 PM
calling private subs dunlklee Excel Programming 1 December 16th 03 08:40 AM


All times are GMT +1. The time now is 09:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"