+ Reply to Thread
Results 1 to 6 of 6

Merging workbook code

  1. #1
    Registered User
    Join Date
    06-11-2009
    Location
    Leeds, England
    MS-Off Ver
    Excel 2003
    Posts
    67

    Merging workbook code

    I currently have the following code that allows grouping when protected and also puts the user into design mode:

    Please Login or Register  to view this content.
    End Sub

    I need to have this spreadsheet open on a specific worksheet, and was going to use this code:

    Please Login or Register  to view this content.
    Not sure if its the best way to do it and I don't know where to begin merging the two codes together (newbie ).

    Thanks,
    Joe
    Last edited by tuckjoseph; 07-08-2009 at 08:45 AM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: Merging workbook code

    Assuming you want YourSheetName to be the active sheet after the rest of the code has run then place the code before the End Sub command
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Merging workbook code

    Please Login or Register  to view this content.
    no thats about it
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  4. #4
    Registered User
    Join Date
    06-11-2009
    Location
    Leeds, England
    MS-Off Ver
    Excel 2003
    Posts
    67

    Re: Merging workbook code

    Thanks for your help! I can't seem to get it to work. I'm using:
    Please Login or Register  to view this content.
    What am I doing wrong?!

    Thanks again,
    Joe

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Merging workbook code

    Once you go to design mode, VBA is done -- so you need to do that last.
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    06-11-2009
    Location
    Leeds, England
    MS-Off Ver
    Excel 2003
    Posts
    67

    Re: Merging workbook code

    Thanks a bundle, that works most awesomely!!!

+ 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