Consulting

Results 1 to 3 of 3

Thread: What Is WorkSheet ?REG??

  1. #1

    What Is WorkSheet ?REG??

    In one of my macros I got an ?invalid subscript? error when executing the statement:

    Worksheets(?Shares?).Select

    I executed the statement:

    MsgBox "Active Sheet name is '" & ActiveSheet.Name & "'."

    and the response was ?REG?.

    Since I?m not consciously using a sheet named REG, I?m wondering, is that is some sort of system name?? (Weird, very weird)

  2. #2
    Knowledge Base Approver VBAX Guru GTO's Avatar
    Joined
    Sep 2008
    Posts
    3,368
    Location
    I certainly cannot imagine what happened there. I'm assuming you made several attempts and are getting the same error(s), can you post the workbook (sanitized of course)?

    Mark

  3. #3
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,728
    Location
    Possibly "Shares" is the name of a module or form?

    That got me once or twice

    Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •