+ Reply to Thread
Results 1 to 2 of 2

Inserting a new template sheet (cyclic issues)

  1. #1
    Registered User
    Join Date
    09-23-2013
    Location
    Gold Coast, Australia
    MS-Off Ver
    2010
    Posts
    50

    Inserting a new template sheet (cyclic issues)

    Hey guys,

    OllieB was an amazing help to me the other day with code that would allow me to import a template sheet from a second file into the open file I was working on. Everything worked perfectly until I tried to activate the macros within one of the sheets that had been imported. I found that the macro from the imported template sheet referenced the code within the template file, and did not change it's reference to the open file. The result is that I cannot import a new sheet from an imported sheet.

    I hope everyone can follow what I am saying!

    Essentially every sheet that the operator has access to will have the macro embedded into it. As one sheet is filled out, the operator should be able to click on the completed sheet (that was originally imported from the template file) and import another sheet.

    I'm certain that it's an issue with the linking of the macro to the template file. As the open file will ultimately have different save names, I can't hard code the macro location into the template file. Is there a way that I can soft code the macro so that it will always reference the sheet that the macro is embedded in, and not the original sheet in the template file where it is stored?

    Please Login or Register  to view this content.
    Thank you!

  2. #2
    Registered User
    Join Date
    09-23-2013
    Location
    Gold Coast, Australia
    MS-Off Ver
    2010
    Posts
    50

    Re: Inserting a new template sheet (cyclic issues)

    Please Login or Register  to view this content.
    This template file will remain constant - but the target files will change name and location. I find that once I import a sheet from the template, as stated, the macro references back to the above file, and not the macro code embedded within the target file.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. USERFORM - Issues Log Template
    By kaurka in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-26-2013, 09:50 AM
  2. Replies: 4
    Last Post: 01-30-2012, 06:46 PM
  3. Referencing issues when inserting a row
    By thebottomline in forum Excel General
    Replies: 8
    Last Post: 02-03-2010, 07:43 AM
  4. Template issues - hiding all rows in 1 sheet
    By Scottiexcel in forum Excel General
    Replies: 4
    Last Post: 12-10-2009, 12:26 AM
  5. New Sheet Inserting Before Template
    By Zimbo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-25-2008, 11:34 AM

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