+ Reply to Thread
Results 1 to 4 of 4

Resolving '1004' Application - defined error: Applying the formula to whole column

  1. #1
    Registered User
    Join Date
    03-25-2014
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    14

    Resolving '1004' Application - defined error: Applying the formula to whole column

    I am running a macro which applies the formula G2=IF((F2="8/31/2013"+0),D2,""). Here, Column G is populated based on column F and G. Now I am running a macro to apply this to the whole G column. Here is the relevant code snippet:

    Please Login or Register  to view this content.
    I am getting the 1004 error in the line starting with ActiveSheet.Range. I cannot figure out why. Any help please?
    Last edited by kundterra; 03-26-2014 at 11:00 AM. Reason: simplified the code. (Removed the IF loop.)

  2. #2
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Resolving '1004' Application - defined error: Applying the formula to whole column

    Hi try this

    Please Login or Register  to view this content.
    or this

    Please Login or Register  to view this content.
    If you are pleased with a member's answer then use the Star icon to rate it.

  3. #3
    Registered User
    Join Date
    03-25-2014
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Resolving '1004' Application - defined error: Applying the formula to whole column

    Buran, Thanks a lot. Worked like a charm. Only problem is that the column is not being populated (uses "" option instead of D2 value) even if the date matches, I suppose this is a formatting issue. Will work around it. Will buy you a beer on going home, but the link is not working for me (maybe work blocks it).

  4. #4
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Resolving '1004' Application - defined error: Applying the formula to whole column

    Glad that it worked. Let me know if you have further issue with the match :-)

+ 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. Replies: 1
    Last Post: 03-12-2014, 12:42 PM
  2. [SOLVED] Run time error 1004 Application-Defined or Object-Defined Error - Placing data into next e
    By michelle 1 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-27-2014, 12:57 PM
  3. Replies: 1
    Last Post: 05-06-2013, 06:07 AM
  4. Replies: 2
    Last Post: 09-12-2012, 01:01 PM
  5. Replies: 0
    Last Post: 05-14-2012, 11:59 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