+ Reply to Thread
Results 1 to 3 of 3

VBA 400 Error when switching sheets

  1. #1
    Registered User
    Join Date
    10-19-2009
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    2

    VBA 400 Error when switching sheets

    Here is my code below and I keep getting an error 400 message as soon as the code goes to the Priority Unique tab. It doesnt do anything on the tab except select it and then sends off the error. Thank you for the help.

    Please Login or Register  to view this content.
    Last edited by gugy27; 10-19-2009 at 11:28 AM.

  2. #2
    Registered User
    Join Date
    10-19-2009
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: VBA 400 Error when switching sheets

    I am taking data from the template (2) sheet to the Macro Test sheet. Once that data is copied in I am trying to generate a unique list of data for each section by copying the section over to another tab and running an advance filter on it for uniques only. My code is below and this is a very important project I am trying to do so any help would be greatly appreciated. I keep getting an error 400 message as soon as the code goes to the Priority Unique tab. It doesnt do anything on the tab except select it and then sends off the error. Thank you for the help.
    Last edited by shg; 10-19-2009 at 03:14 PM. Reason: deleted spurious quote

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: VBA 400 Error when switching sheets

    Is that a sheet in the active workbook? If not, activate the workbook, and then select the sheet.

    That said, it would be better if you removed all the Selecting from your code.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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