+ Reply to Thread
Results 1 to 6 of 6

Move tab from Workbook1 to Workbook2 using Macro VBA

  1. #1
    Registered User
    Join Date
    06-10-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    70

    Move tab from Workbook1 to Workbook2 using Macro VBA

    I have workbook1 open and I want to move one of its tabs to workbook2.
    Workbook1 and workbook2 may vary. I used the "Application.GetOpenFilename" to open workbook1 and now I have
    to use it to open workbook2.
    This is what I have so far.
    Please Login or Register  to view this content.
    This is kinda confusing because I dont want to use any specific names since both WB1 and WB2 may vary,
    Do you follow?

    Any Ideas??
    Last edited by nachousa; 07-08-2010 at 08:51 AM.

  2. #2
    Registered User
    Join Date
    06-10-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Move tab from Workbook1 to Workbook2 using Macro VBA

    Is there a function to activate/operate in the Most Recent Opened Workbook?

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Move tab from Workbook1 to Workbook2 using Macro VBA

    Try
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    06-10-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Move tab from Workbook1 to Workbook2 using Macro VBA

    Hey thanks for that.
    It still didn't work though, I got an error at
    Please Login or Register  to view this content.
    The Error is Script out of Range. I think it is still looking for the DATA tab in the recently open workbook.
    thanks for you help.
    Last edited by nachousa; 07-08-2010 at 10:00 AM.

  5. #5
    Registered User
    Join Date
    06-10-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Move tab from Workbook1 to Workbook2 using Macro VBA

    Any Ideas why is not working?
    I tried editing some but I cannot get it to work.
    Hope you can help.
    Thanks

  6. #6
    Registered User
    Join Date
    06-10-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Move tab from Workbook1 to Workbook2 using Macro VBA

    This is my Goal:
    Click Button. WB2 will open, data tab from WB1 will move to WB2. that is all. But it is hard since the two Workbooks vary.
    Just the fact that I cant use any specific workbook names makes it a lot harder.

    Hope you can help.

    Thanks

+ 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