+ Reply to Thread
Results 1 to 7 of 7

how to copy paste through loop this macro

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Post how to copy paste through loop this macro

    hello evryone

    i m using some data copy multiple range and paste on another book

    this macro is not working well

    Please Login or Register  to view this content.
    want this one

    copy c5:c56 and paste on d7
    copy e5:e56 and paste on f7
    copy f5:f56 and paste on h7
    copy g5:g56 and paste on j7

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: how to copy paste through loop this macro

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: how to copy paste through loop this macro

    thanx for reply patel45

    i forgot to mention one more this

    if i paste only as

    Please Login or Register  to view this content.
    and next time i copy and paste then paste data below the already paste before
    first time i copy data and paste here d7=========d7:d13
    second time i copy data and paste here d7=======d13:d15

    thanx

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: how to copy paste through loop this macro

    Run your code step py step with F5 and see what happens, select is not multiselect.

  5. #5
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: how to copy paste through loop this macro

    Please Login or Register  to view this content.
    want like below

    Please Login or Register  to view this content.

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: how to copy paste through loop this macro

    Hi, haroon2015,

    Please Login or Register  to view this content.
    Your code sample would overwrite the last value in the column.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  7. #7
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: how to copy paste through loop this macro

    Hello HaHoBe

    thanx alot working as i wanted

    thanx alot u too patel45

    regards
    haroon2015

    u both +1 Rep

+ 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. Copy Paste Macro Loop
    By RiteshChaturvedi in forum Excel General
    Replies: 6
    Last Post: 12-20-2013, 01:20 PM
  2. Macro to Copy and Paste and loop
    By bwhite1986 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-16-2012, 10:19 AM
  3. [SOLVED] Copy/Paste Loop Macro
    By danderson2692 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-15-2012, 08:01 AM
  4. loop/repeat copy/paste Macro
    By vizbasic in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-20-2008, 10:19 AM
  5. Copy and Paste Loop-a macro
    By japorms in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2006, 04:07 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