+ Reply to Thread
Results 1 to 5 of 5

Macro to Conditionally Copy-Paste Certain Cells

  1. #1
    Registered User
    Join Date
    07-26-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    23

    Macro to Conditionally Copy-Paste Certain Cells

    Hi all,

    After two weeks of developing and testing, my macro is almost ready! There’s just one small component left that I can’t seem to figure out. It involves conditional copy-pasting. Here are some more details:

    The macro should search column A starting with A2. Each time a cell in column A contains the string “Status,” it should:
    1. Move down 1 cell
    2. Move 10 cells to the right
    3. Copy that cell
    4. Move 10 cells left, 2 cells up (1 above “status”)
    5. Paste
    6. Move down 2 cells so that it can continue searching the column for “Status”

    Any ideas or suggestions are much appreciated!
    Last edited by succel; 08-10-2010 at 09:47 AM.

  2. #2
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    re: Copy-Paste Macro

    Please Login or Register  to view this content.
    Try this.

  3. #3
    Registered User
    Join Date
    07-26-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    23

    re: Copy-Paste Macro

    Thanks! That works perfectly.

    Is there any way to merge and center the pasted cell across columns A through H?

  4. #4
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    re: Copy-Paste Macro

    Please Login or Register  to view this content.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    re: Copy-Paste Macro

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    EDITED THIS TIME
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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