+ Reply to Thread
Results 1 to 5 of 5

Switching between workbooks

  1. #1
    Registered User
    Join Date
    05-31-2006
    Posts
    58

    Switching between workbooks

    Is there a way to switch back and forth between workbooks without having to use the Activate command? I have everything planned out but this aspect is still a source of confusion.

    The Project:
    I need to have qty purchased and price in a table from Worksheet B entered into the matching customer index location in Worksheet A. Worksheet B contains customer number, sku, qty purchased and price. Worksheet A contains customer numbers in row 3 and sku's in column A. Minor data manipulation will need to be done on Worksheet B before before accessing it which I plan to do after opening it in this macro.
    Last edited by Apel; 06-27-2009 at 12:45 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Switching between workbooks

    If you use object variables to reference workbook/worksheet/range etc you should not need to switch between the 2.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    05-31-2006
    Posts
    58

    Re: Switching between workbooks

    I have not worked with assigning workbooks to variables and manipulating them as of yet. Is there a good reference for working with them or if you feel like it some small examples?
    Last edited by Apel; 06-25-2009 at 02:22 PM.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Switching between workbooks

    you code would be something like this,

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-31-2006
    Posts
    58

    Re: Switching between workbooks

    That will get me going in the right direction. Thank you.

+ 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