+ Reply to Thread
Results 1 to 3 of 3

Referencing worksheet from Add-In

  1. #1
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    549

    Referencing worksheet from Add-In

    I'm trying to refer to a worksheet from an Add-In in a workbook open event. The Add-In has the code.
    I've learnt that ThisWorkbook relates to the Add-In and ActiveWorkbook refers to the workbook you are working on.
    When I test though: The first line works and goes the name of the sheet in the Add-In.
    The second part gives an error message.
    Why?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: Referencing worksheet from Add-In

    Can you attach your Excel test file.
    See mine attach, there is no issues it seems, always the same result: Sheet"s name
    Attached Files Attached Files
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    549

    Re: Referencing worksheet from Add-In

    Yes I have tried yours. It also has the same issue.
    Save the Add-In and load it into Excel.
    Then open a blank workbook and you'll get the error message.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Auto Name Worksheet while referencing diff worksheet
    By fourmurphys in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-15-2013, 12:26 PM
  2. Replies: 1
    Last Post: 01-14-2012, 08:01 PM
  3. button to copy worksheet with formulas referencing previous worksheet
    By Alexelius in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-28-2011, 09:40 AM
  4. Replies: 3
    Last Post: 01-21-2011, 08:07 AM
  5. Referencing worksheet with changing worksheet name
    By undergraduate in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-26-2010, 11:51 AM
  6. Indirect Worksheet Function Referencing Another Worksheet
    By Larry.LeBlanc@O in forum Excel General
    Replies: 1
    Last Post: 11-13-2009, 05:51 PM
  7. [SOLVED] CountIF() in Worksheet B while referencing cells in Worksheet A
    By jfj3rd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-14-2006, 06:30 PM
  8. CountIF() in Worksheet B while referencing cells in Worksheet A
    By jfj3rd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-14-2006, 02:40 PM

Tags for this Thread

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