+ Reply to Thread
Results 1 to 3 of 3

Referencing sheet codename instead of sheet name not working

  1. #1
    Forum Contributor
    Join Date
    08-14-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    257

    Referencing sheet codename instead of sheet name not working

    Hi All,

    I'm trying to reference the sheetcode name in a workbook but its giving me errors:

    Please Login or Register  to view this content.
    is my original code but i want it to reference the codename. I changed it to:
    Please Login or Register  to view this content.
    which are the codenames for the respective sheets but it wont work. "wb" is defined earlier in the code as a different Workbook from a getopenfilename command.

    Thanks in advance

    John

  2. #2
    Forum Contributor
    Join Date
    08-14-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    257

    Re: Referencing sheet codename instead of sheet name not working

    The error is "method or data member not found"

  3. #3
    Forum Contributor
    Join Date
    08-14-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    257

    Re: Referencing sheet codename instead of sheet name not working

    Ok, seems you cant reference a codename in another book. and you dont need ThisWorkbook when referencing a codename in the book the code is running in

+ 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