+ Reply to Thread
Results 1 to 2 of 2

How do I : Import Sheet from Template Excel Workbook? (VBA)

  1. #1
    Registered User
    Join Date
    12-12-2011
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    1

    Unhappy How do I : Import Sheet from Template Excel Workbook? (VBA)

    Hi!
    Anyone who tries to help me fix this issue, I greatly appreciate it.
    It's something that I haven't been able to google, and the only other option I've thought of is directly editing the xml files and importing the sheet!

    The background of this;
    I want to have the user pull the latest revision of sheets from the main template file.
    I recorded a macro using the macro recorder (redundant) and used that skeleton to get me what I wanted.
    I searched all over for any type of object oriented method of doing this but was unable to get anything to work correctly!

    Here is the code I am currently using which causes me to also have to reopen the excel workbook because it causes some sort of break, which excel warns me that the file is damaged and could only save a little bit.

    Please Login or Register  to view this content.
    Bonus Question: How do I stop the references from being attached to the template workbook and instead to the active workbook when using .copy? (Easy suggestions: program all the formulas into the macro? --- That makes it harder for non-VBA users to edit changes, however. ;'( )

    Thanks for your time.
    Last edited by cwg999; 12-12-2011 at 11:42 AM.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: How do I : Import Sheet from Template Excel Workbook? (VBA)

    use a sub not a function.

    Please Login or Register  to view this content.



+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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