+ Reply to Thread
Results 1 to 3 of 3

Setting a range in non-active workbook

  1. #1
    Registered User
    Join Date
    03-16-2006
    Posts
    81

    Setting a range in non-active workbook

    I have a userform with a button, and when pressed it refers to a range within the workbook it is generated from. If the workbook if active, the code works fine, but if another workbook is active the code does not work.

    Is there a way to set the range like i have tried below?

    wbName and wsName are references to the workbook the userform is generated from.

    Please Login or Register  to view this content.
    Many Thanks

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

    Re: Setting a range in non-active workbook

    You need to qualify the Cells references.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    03-16-2006
    Posts
    81

    Re: Setting a range in non-active workbook

    Thats great, works a treat.

    Many thanks for your help.

+ 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