Closed Thread
Results 1 to 5 of 5

use VBA to copy cells including conditional format

  1. #1
    Registered User
    Join Date
    10-18-2015
    Location
    Amsterdam
    MS-Off Ver
    2013
    Posts
    17

    use VBA to copy cells including conditional format

    Hi,
    last time i had extremely good help with this forum and with a count.if function.

    So far I have tried to make it all working, but still need a little help. Especially with macro.

    In my example I want to copy rows and cells of sheet.player to sheet.print, but want to maintain te color and fontcolor (don't want to copy font size)

    I was thinking of the following.
    look at highest number in colom a and devide to 90.
    for example highst number is 108

    So 108 / 90 = 1,35, so i have to round it up to 2 to know i times i have to copy rows.

    than i want to copy B:L of of PID 1 to 90 of sheet "Players" and copy sheet "Print" A2

    than copy PID 91 to last PID of sheet "Players" and copy sheet "Print" M2

    If i have pid of 400
    it's 400 / 9 = 4,4
    so 4 complete colums.
    copy B:L for pid 1-90, 91-180, 181-269, 270-, 359 and the last part 360-end (pid 400)

    I have attached my file, that will probably make more sense
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-02-2015
    Location
    calgary alberta
    MS-Off Ver
    2012
    Posts
    205

    Re: use VBA to copy cells including conditional format

    jesus I don't know if I'm over tierd or really don't understand, what do you want to fire the macro?, not really to sure that your trying to attempt

  3. #3
    Registered User
    Join Date
    10-18-2015
    Location
    Amsterdam
    MS-Off Ver
    2013
    Posts
    17

    Re: use VBA to copy cells including conditional format

    Want to copy B:K of sheet "player" to sheet "print". But also want to copy cell color and font color.
    Copy Paste wil not work, because the cell color purple will not be copied (think because of conditinal format) when I try it, thats why i think macro should be the way to go.

    O want to copy 90 rows at the time and than skip a few column in "print" and copy the next 90 rows ect.ect.
    Hope it's a bit more clear , forgive me with my terrible explanation.

  4. #4
    Registered User
    Join Date
    10-18-2015
    Location
    Amsterdam
    MS-Off Ver
    2013
    Posts
    17

    Re: use VBA to copy cells including conditional format

    the end result should be so, that i can print a nice list on one page.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,696

    Re: use VBA to copy cells including conditional format

    Closed at lxx28's request to repost on Commercial Services.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Question: Conditional Formula including sum, blanks, and multiple cells
    By unfmarine in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2015, 02:01 PM
  2. Auto copy cells including a cells Coloured background (colour fill)
    By rick.parry in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-06-2013, 04:51 AM
  3. [SOLVED] Conditional Formatting to all cells including PivotTable
    By c.drysdale89 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-04-2013, 08:49 AM
  4. copy conditional format to several cells using formulas with relative cells
    By jhowell01 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-05-2012, 12:16 AM
  5. Complex Conditional Sum (including pivots, merged cells and more)
    By PeteB in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-14-2012, 10:12 AM
  6. Replies: 1
    Last Post: 10-21-2010, 07:01 PM
  7. Copy worksheet including named ranges not including macros
    By urungus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-07-2009, 01:38 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