Results 1 to 4 of 4

sheet codename issue

Threaded View

  1. #1
    Registered User
    Join Date
    05-01-2006
    Location
    OH
    MS-Off Ver
    Excel 2013
    Posts
    41

    sheet codename issue

    I declare Sheet4m as string, then...

    Sheet4m = ThisWorkbook.VBProject.VBComponents(ActiveSheet.CodeName).Name


    If the active sheet is sheet 1, then Sheet4m properly stores "Sheet1," but if sheet 2 is the active sheet, then I get a run time error '9': subscript out of range.

    What is the issue?
    Last edited by elprup; 05-18-2010 at 01:06 PM.

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