+ Reply to Thread
Results 1 to 5 of 5

Run-Time Error 1004..... Can't Figure Out How to Resolve

  1. #1
    Registered User
    Join Date
    04-12-2017
    Location
    Pryor, Oklahoma
    MS-Off Ver
    2016
    Posts
    7

    Run-Time Error 1004..... Can't Figure Out How to Resolve

    What I'm trying to do is create a module that, when ran, will take specific cells within an open workbook (Called MCCIP Template) and then save them into a specific, unopened workbook (called CIP Directory). Workers will fill out this MMCIP Template, click a button containing the module, and the module will do the rest. They fill out this MMCIP Template a lot, I want this CIP Directory to keep track of all the important information (Date, Time, as well as other relevant info).

    I've got the save part down, that's obviously easy. The issue comes when I try to copy and paste info from the open workbook into the closed workbook. The section of code for copying just this one cell looks like this:

    Please Login or Register  to view this content.
    The line causing the issue is the OutputFile.Sheets("Main Plant").Range("A1").End(xlDown).Offset(1,0).Select.PasteSpecial Paste:=xlPasteValues

    I'm getting "Run-time error 1004: Application-defined or object-defined error"

    I've done some Googling and can't seem to find what exactly the issue is.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,210

    Re: Run-Time Error 1004..... Can't Figure Out How to Resolve

    Try This:

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Last edited by sintek; 04-25-2017 at 04:08 PM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Run-Time Error 1004..... Can't Figure Out How to Resolve

    I think you just don't have to Select at the same time you want to PasteSpecial.
    Change your line for:
    Please Login or Register  to view this content.
    and it should work.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  4. #4
    Registered User
    Join Date
    04-12-2017
    Location
    Pryor, Oklahoma
    MS-Off Ver
    2016
    Posts
    7

    Re: Run-Time Error 1004..... Can't Figure Out How to Resolve

    Neither of these worked, unfortunately. Still getting the same error.

  5. #5
    Registered User
    Join Date
    04-12-2017
    Location
    Pryor, Oklahoma
    MS-Off Ver
    2016
    Posts
    7

    Re: Run-Time Error 1004..... Can't Figure Out How to Resolve

    I tried this, as well. Still getting the same error on the same line.

+ 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. How to resolve the Run-time error 1004
    By Sanjibghosh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2016, 05:05 AM
  2. [SOLVED] Help to resolve Run time Error 380
    By LenaK in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-30-2015, 11:55 AM
  3. [SOLVED] Run time error 1004 and i cant figure out why??
    By vmandonado in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-02-2014, 01:25 AM
  4. Vlookup in VBA error 1004 - can't figure out what's wrong.
    By lordterrin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-07-2014, 02:23 PM
  5. [SOLVED] How can I resolve this Run-Time error '1004': Method 'Range' of object '_Worksheet' failed
    By dafella in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2013, 01:16 AM
  6. [SOLVED] Advanced Filtering -Runtime Error 1004. Cannot figure out why will not work.
    By thelisa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2013, 08:00 AM

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