LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Can I call a sub procedure from another file?

Hello all,

I have a time sheet workbook that, at the end of the payperiod, will
mail itself to my boss. I want to add to it the ability to move
itself to a "Sent" folder. But in order to do that, it needs to be
closed. When it closes, all code stored in it after the Close method
will not execute, correct? So, I will have to store the commands to
close and move the file in PERSONAL.XLS. Can I call a sub procedure
stored in PERSONAL.XLS from my timesheet workbook? If so, how?

I'm assuming that the procedure I'm calling will need the Public
keyword added to it, correct? I have tried that before. The
statement I used to try to call it was:

ProcedureName Arguments '(if any)

But when I tried that, I got Compile Error message: Variable Not
Defined (if I remember correctly).

Any help on this matter will be greatly appreciated,

Conan Kelly


 
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
Call procedure from another Excel File? Dave Ladd Excel Programming 1 September 27th 05 07:52 PM
Where else to look for procedure call Lulu Excel Programming 0 November 24th 04 03:07 PM
Where else to look for procedure call Lulu Excel Programming 2 November 24th 04 02:14 AM
call procedure bob Excel Programming 1 August 9th 03 12:40 AM
procedure won't call John Gittins Excel Programming 0 August 5th 03 08:17 PM


All times are GMT +1. The time now is 01:12 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"