+ Reply to Thread
Results 1 to 2 of 2

Inserting Proc-Call Into BeforeSave

Hybrid View

  1. #1
    Trent Argante
    Guest

    Inserting Proc-Call Into BeforeSave

    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)]

  2. #2
    Trent Argante
    Guest

    RE: 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)]


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1