+ Reply to Thread
Results 1 to 2 of 2

Using Addin to select sheets in Active Workbook

  1. #1
    Registered User
    Join Date
    10-20-2004
    Posts
    2

    Using Addin to select sheets in Active Workbook

    I have a macro in an addin that I am calling from a separate workbook. However, whenever I run the code below, it is running the code in the addin, not the active workbook.

    Sheet1.Range("A2").CopyFromRecordset rsData

    Sheet1 doesn't exist in the addin, so it is failing. How can I get the code to work in the ActiveWorkbbok, and not in the addin?

    Thanks

  2. #2
    Registered User
    Join Date
    10-20-2004
    Posts
    2

    Using Addin to select sheets in Active Workbook

    Doing some more digging, it looks like if I have the macro in the addin select cells, it is selecting them in the active workbook. However, for sheets, they are being selected in the addin workbook. How can I get around this and select sheets in the active workbook.

+ 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