+ Reply to Thread
Results 1 to 4 of 4

Error 1004:Method 'Range' of object '_Worksheet' failed

  1. #1
    Registered User
    Join Date
    03-25-2019
    Location
    India
    MS-Off Ver
    2017
    Posts
    5

    Error 1004:Method 'Range' of object '_Worksheet' failed

    Dim i As Integer

    Dim aps As Worksheet
    Set aps = ThisWorkbook.Worksheets("Data")

    i = ThisWorkbook.Worksheets(2).Range("c6000").End(xlUp).Row - 1

    aps.Range(Cells(2, 12), Cells(i, 12)).ClearContents

    getting an error at te end of line.. any suggestions?

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Error 1004:Method 'Range' of object '_Worksheet' failed

    Hi & welcome to the board.
    Try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-25-2019
    Location
    India
    MS-Off Ver
    2017
    Posts
    5

    Re: Error 1004:Method 'Range' of object '_Worksheet' failed

    Thank you so much! It's working

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Error 1004:Method 'Range' of object '_Worksheet' failed

    You're welcome & thanks for the feedback

+ 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. [SOLVED] Run-time error '1004': Method 'Range' of object '_worksheet' failed
    By Ms2BSwagg in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 03-31-2021, 12:25 PM
  2. Run-time error '1004' - Method 'Range' of object '_Worksheet' failed
    By Veronik in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-25-2018, 03:17 PM
  3. run-time error '1004' method 'range' of object '_worksheet' failed
    By Emma_B in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-26-2014, 09:00 AM
  4. [SOLVED] Runtime Error '1004' Method 'Range' of object '_Worksheet' failed
    By ovalstar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2013, 02:15 PM
  5. [SOLVED] Help! Error 1004, method 'Range' of object'_Worksheet' failed.
    By zac_595 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-07-2013, 02:55 PM
  6. Run time Error 1004 Method 'Range' object '_Worksheet 'failed
    By Monica1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2013, 07:42 AM
  7. me too - run-time error '1004' method 'range' of object '_worksheet' failed
    By ASAFSWIS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2013, 05:14 PM

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