+ Reply to Thread
Results 1 to 7 of 7

run time error but code looks right?! please double-check me

  1. #1
    Forum Contributor
    Join Date
    09-12-2013
    Location
    chicago, illinois
    MS-Off Ver
    Excel 2010
    Posts
    109

    run time error but code looks right?! please double-check me

    I am stumped on this one! All i am trying to do is select a row on one sheet, the entire row, and copy it do a row on a different sheet and i am receiving a run time error 1004 Select Method of Range class failed. the code is in an activex button. here is the code

    Please Login or Register  to view this content.
    any ideas??
    Last edited by fredderf81; 09-24-2013 at 03:58 PM. Reason: typo

  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: run time error but code looks right?! please double-check me

    Make sure you have a sheet name "one"
    Regards,
    tt3

  3. #3
    Forum Contributor
    Join Date
    09-12-2013
    Location
    chicago, illinois
    MS-Off Ver
    Excel 2010
    Posts
    109

    Re: run time error but code looks right?! please double-check me

    i'm still stumped...sheet names were the first thing i looked at.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: run time error but code looks right?! please double-check me

    Don't use Select.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  5. #5
    Forum Contributor
    Join Date
    09-12-2013
    Location
    chicago, illinois
    MS-Off Ver
    Excel 2010
    Posts
    109

    Re: run time error but code looks right?! please double-check me

    i got it!!! ....had yet another light-bulb moment...hope this helps if anyone needs it:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    09-12-2013
    Location
    chicago, illinois
    MS-Off Ver
    Excel 2010
    Posts
    109

    Re: run time error but code looks right?! please double-check me

    EDIT: just say Norie's post as well! that worked too!! thank you much for the help again! =)

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: run time error but code looks right?! please double-check me

    My code is the same as your code, except I'm lazy and didn't include the named argument Destination.

+ 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 code to check #REF error exists in Excel file
    By KPK in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-02-2013, 01:56 AM
  2. Code to check VBA Compile Error
    By pratyathedon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-26-2012, 10:11 PM
  3. Replies: 0
    Last Post: 07-12-2012, 12:47 PM
  4. Application Version Check and Run Time 5 Error
    By cdt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-08-2010, 09:01 AM
  5. error messages from check box code...
    By lottesfog in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-25-2007, 01:53 AM

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