PC Review


Reply
Thread Tools Rate Thread

Calling Subs in other WB

 
 
=?Utf-8?B?c2FuLWF2c2M=?=
Guest
Posts: n/a
 
      25th Jul 2007
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 With Quote
 
 
 
 
=?Utf-8?B?VmVyZ2VsIEFkcmlhbm8=?=
Guest
Posts: n/a
 
      25th Jul 2007
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 With Quote
 
=?Utf-8?B?SGFsaW0=?=
Guest
Posts: n/a
 
      25th Jul 2007
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.

 
Reply With Quote
 
=?Utf-8?B?c2FuLWF2c2M=?=
Guest
Posts: n/a
 
      26th Jul 2007
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.

 
Reply With Quote
 
=?Utf-8?B?c2FuLWF2c2M=?=
Guest
Posts: n/a
 
      26th Jul 2007
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: calling subs Bob Phillips Microsoft Excel Programming 0 18th Dec 2006 03:51 PM
Calling public subs ST Microsoft VB .NET 4 29th Oct 2004 02:18 PM
calling subs Mike Microsoft Excel Programming 4 8th Apr 2004 08:22 PM
calling Subs Jacques Proot Microsoft Access VBA Modules 1 12th Sep 2003 04:01 PM
Re: Calling Subs TC Microsoft Access Form Coding 0 4th Aug 2003 04:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:40 PM.