+ Reply to Thread
Results 1 to 2 of 2

Runtime error 1004

  1. #1
    Registered User
    Join Date
    01-21-2015
    Location
    hyderabad
    MS-Off Ver
    2007
    Posts
    73

    Runtime error 1004

    Hi,


    Pls go through the attached excel file. I could not understand why iam getting (At yellow colored line) "runtime error 1004: Application-defined or Object defined error.

    Pls solve my issue.

    Regards
    Pal
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Runtime error 1004

    You can not have ups(rows) and downs(columns) mixed up

    Storedata = Range("a1", Range("a1").End(xlRight).End(xlDown))

    If you going down

    Storedata = Range("a1", Range("a" & Rows.Count).End(xlUp))

    Going to the right

    Storedata = Range("a1", Cells(1, Columns.Count).End(xlToLeft))
    Last edited by AB33; 11-23-2017 at 11:30 AM.

+ 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. Runtime Error 1004
    By yokiest in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-18-2015, 05:47 PM
  2. Runtime error '1004': Paste special method of range class error.
    By Daryl Zer0 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-05-2014, 01:44 AM
  3. [SOLVED] VBA Error: Runtime Error 1004: AutoFilter method of Range class failed
    By jl22stac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-03-2013, 07:27 PM
  4. [SOLVED] Range error in code, runs alone but not inside my full program, giving runtime error 1004
    By charizzardd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-23-2012, 03:34 PM
  5. Runtime Error 1004???
    By kewlrunnings in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-25-2005, 03:05 AM
  6. Excel 2003 Macro Error - Runtime error 1004
    By Cow in forum Excel General
    Replies: 2
    Last Post: 06-07-2005, 09:05 AM
  7. Runtime 1004 Error
    By zigtag3d in forum Excel General
    Replies: 3
    Last Post: 03-27-2005, 07:30 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