+ Reply to Thread
Results 1 to 8 of 8

Code to attach to button to autmatically import a template sheet

  1. #1
    Registered User
    Join Date
    03-10-2015
    Location
    canada
    MS-Off Ver
    2007
    Posts
    29

    Code to attach to button to autmatically import a template sheet

    Is this possible?
    I have a workbook in which I would like to be able to import a new sheet of each month... not sure how to do this.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,010

    Re: Code to attach to button to autmatically import a template sheet

    .
    Paste this code into a routine module:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-10-2015
    Location
    canada
    MS-Off Ver
    2007
    Posts
    29

    Re: Code to attach to button to autmatically import a template sheet

    Thanks very much. Instead of a selection, can I specify the exact sheet within the code, instead?

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,010

    Re: Code to attach to button to autmatically import a template sheet

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-10-2015
    Location
    canada
    MS-Off Ver
    2007
    Posts
    29

    Re: Code to attach to button to autmatically import a template sheet

    Awesome!
    Last question... what if I always wanted to put the sheet before or after another specific sheet?

  6. #6
    Banned User!
    Join Date
    10-29-2012
    Location
    Europe
    MS-Off Ver
    2013, 2016
    Posts
    318

    Re: Code to attach to button to autmatically import a template sheet

    Quote Originally Posted by adamgm View Post
    Awesome!
    Last question... what if I always wanted to put the sheet before or after another specific sheet?
    Hi,
    This is to put sheet before:
    Please Login or Register  to view this content.
    and this is for after:
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-10-2015
    Location
    canada
    MS-Off Ver
    2007
    Posts
    29

    Re: Code to attach to button to autmatically import a template sheet

    Quote Originally Posted by Indi_Ra View Post
    Hi,
    This is to put sheet before:
    Please Login or Register  to view this content.
    and this is for after:
    Please Login or Register  to view this content.
    I was having trouble with the exact syntax, but I get it now, I had to edit within the brackets for the sheet name.

  8. #8
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,010

    Re: Code to attach to button to autmatically import a template sheet

    Thanks for the Add Rep

+ 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. [SOLVED] Create new sheet from a template with a button
    By cjames2012 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-06-2013, 02:34 PM
  2. Summarize Sheets onto one Sheet / Create New Sheet from Template with Button
    By albizzundy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-12-2013, 01:33 PM
  3. Attach code to checkbox to copy NamedRange to another sheet
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-22-2012, 04:08 AM
  4. create a button to attach a photo with gps coordinates to excel sheet
    By Just a tree in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2012, 06:35 AM
  5. Attach code to each sheet and if a new sheet is created add the code to this automatically
    By Irish RayRay in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-13-2012, 08:33 AM
  6. How do I : Import Sheet from Template Excel Workbook? (VBA)
    By cwg999 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2011, 11:57 AM
  7. Code to attach a sheet as an Outlook email attachment
    By rlsublime in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-30-2011, 11:32 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