+ Reply to Thread
Results 1 to 5 of 5

A Macro so it does not copy all rows.

  1. #1
    Forum Contributor
    Join Date
    02-02-2013
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2010
    Posts
    167

    A Macro so it does not copy all rows.

    Sorry for posting under Formulas & Functions, but the link for macros was not working.

    Here is my question and what I would like to do. I want to tweak my "Copy Rows" button, so it does not copy rows that are "Shaded". My Shaded items will alway fall between "General Conditions and "SubTotal General Conditions". Also Shaded items will fall between "Surveying and SubTotal Surveying".

    Sometimes I will have more or less items that are shaded, and they will not alway fall in the same rows, but will always fall between what I have stated above. Can this be done? If so I would really appreciate the help in adding to the marco. Please see attached.
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: A Macro so it does not copy all rows.

    We need one more piece of information before attacking this problem - turn on the macro recorder and shade as cell exactly like the cells you do not want copied and then turn it off. Post the macro. We need to know the exact format for what we are looking for. I assume you do want to copy the rows with the pale yellow shading.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    02-02-2013
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2010
    Posts
    167

    Re: A Macro so it does not copy all rows.

    Thank you for your reply. Please see attached. I would like to copy all rows accept for the ones that are in the shaded area. They will not always fall in the same row area. I want to tweak my "Copy Rows" button, so it does not copy rows that are "Shaded". My Shaded items will alway fall between "General Conditions and "SubTotal General Conditions". Also Shaded items will fall between "Surveying and SubTotal Surveying".

    Sometimes I will have more or less items that are shaded, and they will not alway fall in the same rows, but will always fall between what I have stated above. Can this be done? If so I would really appreciate the help in adding to the marco. Please see attached.
    Attached Files Attached Files

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: A Macro so it does not copy all rows.

    This is a bit easier to work with. The cell is either shaded or not. There are no other kinds of shaded cells.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    02-02-2013
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2010
    Posts
    167

    Re: A Macro so it does not copy all rows.

    Thanks for responding dflak....but it is not what I'm looking for. I just want to copy all the rows that are not shaded. The shaded rows will still have to stay in the rows that they are in...just as a reference to refer back to. The copied rows will not be pasted any place in excel. I will paste this information into my estimating software.

+ 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. Macro copies rows based on condition, BUT rows copy in Wrong order. PLEASE HELP!
    By JAllard1990 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2014, 04:33 PM
  2. Macro to copy rows based on moving date and paste the rows into an identical sheet
    By ivandc1234 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2014, 11:59 AM
  3. Replies: 0
    Last Post: 11-12-2013, 04:56 PM
  4. Copy the employee Ids to subsequent rows (approx 30 rows) using macro - Roster Type
    By Keerthi Raj in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-21-2013, 01:10 AM
  5. Replies: 0
    Last Post: 05-10-2013, 12:04 PM
  6. [SOLVED] macro to copy the formulas in Sheet2 to as many rows as rows available in Sheet1
    By flakedew in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-21-2012, 04:52 AM
  7. Replies: 2
    Last Post: 04-21-2011, 07:13 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