+ Reply to Thread
Results 1 to 3 of 3

Change sheet error

  1. #1
    Registered User
    Join Date
    01-04-2008
    Location
    Halifax, NS
    Posts
    2

    Change sheet error

    Hello everyone, I hope I'm posting this in the correct area.

    I have Excel XP version installed on my system.

    I have an excel workbook with 2 sheets, the 1st & main sheet is called Parking Receipt, & the second sheet is named Card Holders.

    Sometimes when I edit the Card Holders sheet I save my work & close out excel. The problem is the next time I open the parking file I have a macro set to run automatically using the Parking Receipt sheet but the Card Holders sheet is the active sheet.

    I wrote a routine to check the active sheet & change to the correct one but I keep getting an error message when it comes to this line in the code:
    Please Login or Register  to view this content.
    Error Msg: runtime error '438':
    Object doesn't support this property or method


    My Code:
    Please Login or Register  to view this content.
    Last edited by VBA Noob; 01-04-2008 at 02:09 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    I would just use

    Please Login or Register  to view this content.
    but maybe

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    01-04-2008
    Location
    Halifax, NS
    Posts
    2
    I had tried it that way the 1st time & I was getting the same error but I did notice my problem when I looked at your code. I had .Active & not .Activate which was causing the error.

    Thank's very much for your help, much appreciated.

    eric


    Quote Originally Posted by VBA Noob
    I would just use

    Please Login or Register  to view this content.
    but maybe

    Please Login or Register  to view this content.
    VBA Noob

+ 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