+ Reply to Thread
Results 1 to 4 of 4

Range Select generates 400 error code

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Range Select generates 400 error code

    Newbie time again, I'm afraid.

    The code below runs perfectly until the last line where it generates a 400 error. The syntax looks OK so where am I going wrong? When I save the code it does not generate any error.

    My sanity would appreciate any help.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Range Select generates 400 error code

    Try to change this
    Please Login or Register  to view this content.
    To:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Re: Range Select generates 400 error code

    Thanks for the assistance but still getting a 400 error. I tired putting it before the End If and then I tried putting it after the End If but neither worked.

    Grateful for any further ideas

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Range Select generates 400 error code

    Do you need to actually "Select" the cell?

    You can't select the cell directly that is in the non-activesheet.
    Select the sheet first.
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA generates error 13
    By jmafabi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2012, 11:04 AM
  2. Macro generates error '5'
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-18-2009, 04:17 PM
  3. [SOLVED] range.offset generates a Run Time error 1004
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2006, 12:50 PM
  4. [SOLVED] Range.Select error and screen maximizing error in Workbook_Open()
    By Punsterr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-10-2006, 05:20 PM
  5. [SOLVED] Range.Select error and screen maximizing error in Workbook_Open()
    By Punsterr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2006, 03:00 PM

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