LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Inserting Proc-Call Into BeforeSave

Chip Pearson's "Creating An Event Procedure"
(http://www.cpearson.com/excel/vbe.htm) ended up being the soultion for this.
But, when ran, focus is set to the VBE. How do I programmically reset focus
to Sheet1 of the active workbook?
Thanks,
Trent Argante
[DC.J(168)]


"Trent Argante" wrote:

I need to insert a procedure call into the BeforeSave event handler of a file
that is the result of a programmic 'Save As'.
A procedure makes changes to a template, imports a module to the template,
then saves the template as another file. At this point, the user make
changes to the file, saves then closes it. I need those changes saved to a
data file, which the imported module does, but I need the BeforeSave event
handler to call the module's procedure.
TIA,
Trent Argante
[DC.J(168)]

 
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
running proc in excel just_real Excel Discussion (Misc queries) 1 November 21st 08 06:51 AM
DAO recordset Call to SQL Stored Proc Datasort Excel Programming 0 December 1st 05 06:06 PM
execte stored proc maxzsim Excel Programming 1 May 10th 05 05:50 PM
ADO - how to run proc returning a record BEDE[_3_] Excel Programming 2 April 21st 04 08:06 PM
Call a proc inside itself (HELP) David Excel Programming 2 February 4th 04 08:28 PM


All times are GMT +1. The time now is 01:02 PM.

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"