+ Reply to Thread
Results 1 to 3 of 3

create macro to copy paste many rows at once

  1. #1
    Registered User
    Join Date
    07-29-2008
    Location
    san francisco
    Posts
    1

    create macro to copy paste many rows at once

    Hello, I am new to the forum and excited to learn of its existence! I am a long time Excel user for basic functions...never tried to create a macro until recently. I do not know VB

    My situation is that I am updating 2 worksheets daily with date and financial values. I am repeating a set of 6 steps up to 50 times and its sinking my time and killing my energy! I tried creating a regular macro to do the job and quickly discovered its limitations.

    Here are the steps:

    1) copy entire row
    2) right click row below
    3) insert copied cells
    4) paste special -- "values"
    5) select entire row (from step 4)
    6) From the "Fill color" pull down - select white fill

    7) in another 10-30 rows - repeat 1-6

    I would be eternally grateful for anyone who can help me create a macro to run these steps!

    Thanks for your time....

    Asaya Adea

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi, and welcome to the forum.

    You need to be a bit clearer about item 7.
    How many rows do you want to leave before repeating steps 1-6? Simply saying in another 10-30 rows isn't very clear.

    Then is it a consistent gap between the rows you want to operate on, or does this vary and you need to work out which is the first row in the next 'block'? In which case what's the rule?

    Finally how many iterations do you need to make? Is this determined by the number of rows, or a fixed number.

    Rgds

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    AS Richard says you need to explain more about No7 but see if this helps 1 to 6.

    Select the row first

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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