+ Reply to Thread
Results 1 to 25 of 25

Error 1004 - object-defined error when vba code not applicable

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-21-2011
    Location
    Australia, Perth
    MS-Off Ver
    Excel 2010
    Posts
    159

    Re: Error 1004 - object-defined error when vba code not applicable

    Hi AB33,

    I finally found a way to isolate enough lines to replicate the issue.

    In the attached file, column CI is used as a check (when the macro is pressed, all values should turn to 0 via adjustments made in previous columns). Because some data is missing, you will see that the values don't change the first time you click. Yet if you click a second time, everything changes to values that are highly incorrect.

    I can't isolate what seems to create the issue if the macro is run a second time so any help on this would be greatly appreciated.

    Also, could you please let me know whether:

    . there is a way to automatically adjust the range to the last line of data (which would vary every month) rather than hardcoding it in the vba
    . there is a more efficient way to write the code to reduce the processing time over ~70,000 lines.

    Thanks again for your help.
    S
    Attached Files Attached Files

+ 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] Error message: Run-Time error '1004 '; application-defined or object-defined error
    By Davasu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2015, 06:52 AM
  2. Replies: 1
    Last Post: 10-22-2015, 05:50 AM
  3. Replies: 5
    Last Post: 08-19-2015, 07:10 PM
  4. HELP WITH ERROR CODE '1004' Application-defined or object defined error
    By QuintonMcCloud in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-20-2015, 03:34 PM
  5. VBA ERROR: run time error 1004: Application-defined or Object-defined error in excel 2013
    By AnanthKrishna in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2015, 06:16 AM
  6. [SOLVED] Error " Run-time error '1004': application defined or object defined error
    By lengwer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2013, 07:26 AM
  7. Replies: 2
    Last Post: 09-12-2012, 01:01 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