+ Reply to Thread
Results 1 to 8 of 8

Runtime Error 1004 while copying dinamic ranges

  1. #1
    Registered User
    Join Date
    08-29-2013
    Location
    London, England
    MS-Off Ver
    Xl2010
    Posts
    4

    Runtime Error 1004 while copying dinamic ranges

    Hi all,

    I´ve just a problem while copying the range from on to another worksheet.
    The Problem ist, the source range is dynamic, so it increases if common criteria in the cells match.
    I´m a vba noob, so be merciful with me. The actual code is an mixture of code shunks

    Please Login or Register  to view this content.
    hopefully somebody can introduce , how I fix these problem.

    regards

  2. #2
    Forum Contributor codeslizer's Avatar
    Join Date
    05-28-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003 - 2010
    Posts
    245

    Re: Runtime Error 1004 while copying dinamic ranges

    Hi Mallok,

    What are you trying to pass in the following code? Are you trying to pass a range?

    Please Login or Register  to view this content.
    cOdEsLiZeR - Back after a long break.. Let's sLiZe some more cOdEs!!

  3. #3
    Forum Contributor codeslizer's Avatar
    Join Date
    05-28-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003 - 2010
    Posts
    245

    Re: Runtime Error 1004 while copying dinamic ranges

    Hi Mallok,

    What are you trying to pass in the following code? Are you trying to pass a range?

    Please Login or Register  to view this content.
    Can you show us how you defined that procedure?

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,968

    Re: Runtime Error 1004 while copying dinamic ranges

    What is this line supposed to mean:
    Please Login or Register  to view this content.
    What is the third WS1 supposed to be doing?
    Everyone who confuses correlation and causation ends up dead.

  5. #5
    Registered User
    Join Date
    08-29-2013
    Location
    London, England
    MS-Off Ver
    Xl2010
    Posts
    4

    Re: Runtime Error 1004 while copying dinamic ranges

    Hi Codeslizer,

    I´m passing values from arrays.

    arrP1 = Array("TRUE", "True", "TRUE")
    arrP2 = Array("*", "*", "*")
    arrAct = Array("copyLine", "copyLine", "copyLine")

    Maybe, If I take this makro running I´ll define more copy possibilities

  6. #6
    Registered User
    Join Date
    08-29-2013
    Location
    London, England
    MS-Off Ver
    Xl2010
    Posts
    4

    Re: Runtime Error 1004 while copying dinamic ranges

    Quote Originally Posted by romperstomper View Post
    What is this line supposed to mean:
    Please Login or Register  to view this content.
    What is the third WS1 supposed to be doing?
    Oh ****, certainly nothing.
    If your are searching for code error it´s like looking to a mandelbrot set.

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,968

    Re: Runtime Error 1004 while copying dinamic ranges

    Quote Originally Posted by mallok View Post
    If your are searching for code error it´s like looking to a mandelbrot set.
    What else would I be doing when you are having problems with your code?

  8. #8
    Registered User
    Join Date
    08-29-2013
    Location
    London, England
    MS-Off Ver
    Xl2010
    Posts
    4

    Re: Runtime Error 1004 while copying dinamic ranges

    :-P

    Ok, as I said bevor, I´m a greenhorn.
    The copy paste code it´s a bulk of waste

    Now I´ve updated it.
    Please Login or Register  to view this content.
    Data is copied to the destinaiton sheet, but only one row
    Loops are also a red rag

+ 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] Runtime Error 1004 when Copying worksheets from multiple workbooks into current workbook
    By dharris42 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2013, 11:56 AM
  2. [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
  3. Runtime error 1004 when copying and pasting a filtered collumn excel 2010
    By Shedacq in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-14-2012, 06:35 AM
  4. Runtime Error 1004
    By strat_640 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2007, 09:10 AM
  5. [SOLVED] Excel 2003 Macro Error - Runtime error 1004
    By Cow in forum Excel General
    Replies: 2
    Last Post: 06-07-2005, 09:05 AM

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