Results 1 to 3 of 3

Thread: Determine why basic syntax errors out in Excel 2013

  1. #1
    Junior Member
    Join Date
    Jun 2013
    Posts
    5
    Rep Power
    0

    Determine why basic syntax errors out in Excel 2013

    I get a Run-Time Error 32809 on code written in Excel 2010 and now executed in 2013 when it hits the line Sheets("New Data").select . Unbelievable huh ?? "Application-defined or object-defined error" . The syntax is perfect and has never error'd before. Does anyone have any idea why this code suddenly stops working ??

  2. #2
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,401
    Rep Power
    10
    Try replacing with
    Code:
    Application.GOTO worksheets("New Data").Cells(1)
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  3. #3
    Member mrmmickle1's Avatar
    Join Date
    Sep 2012
    Posts
    51
    Rep Power
    12
    I have had this error in the past as well using:

    Code:
     Sheets("RawData").Activate
    'AND
    Sheets("RawData").Select
    Would it always be preferable to use the above method?

    Code:
    Application.GOTO worksheets("New Data").Cells(1)
    Are there specific times when each one of these is better suited? Is one more efficient then the other?
    Using Excel 2010

Similar Threads

  1. Excel 2013 - Picture Compression Macro
    By MCBrad in forum Excel Help
    Replies: 1
    Last Post: 07-11-2013, 07:24 PM
  2. Syntax Error In SQL Update Query Statement
    By ashu1990 in forum Access Help
    Replies: 3
    Last Post: 06-11-2013, 11:48 AM
  3. Replies: 4
    Last Post: 06-09-2013, 01:43 AM
  4. Good tutorial Excel 2013 SDK
    By Rasm in forum Excel Help
    Replies: 2
    Last Post: 04-01-2013, 01:17 AM
  5. On Error Statement (Visual Basic)
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 10-12-2011, 09:06 AM

Posting Permissions

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