+ Reply to Thread
Results 1 to 1 of 1

“Background Color” Issue. Range Copy Works. Rows Copy Don’t. What I see is not what I Get

  1. #1
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    “Background Color” Issue. Range Copy Works. Rows Copy Don’t. What I see is not what I Get

    “Background Color” Issue. Range Copy Works. Rows Copy Don’t. What I see is not what I Get / Have?

    Hi,
    . I am a Beginner myself, but learning by answering Threads here.
    . I Hit a problem while answering a Thread, which I got over but I do not understand what is going on and suspect the answer may be obvious to a Profi.
    . Can someone help:
    .
    . I try to summarize the problem with a shortened example.
    .
    . I have prepared a sample sheet to demonstrate the problem

    . I start with this:

    Using Excel 2007
    Row\Col
    B
    C
    D
    E
    F
    G
    H
    I
    J
    4
    5
    6
    7
    CopyFormatProblem



    … I run the following code, and get what I expect from Part 1) when I copy a Range. The method I use here is to copy the actual range of interest
    .. What I do not understand is that when I try to do the same in Part 2) I do not get the format copied, that is to say the “Background color” is not copied. The method I use here is to copy the entire rows containing the range of interest.
    .. There appears to be some formatting issues which behave differently in the two methods.

    … Here is the Test Code I am using:

    Please Login or Register  to view this content.
    … applying this code to the first screen shot above I obtain the following results:

    Using Excel 2007
    Row\Col
    B
    C
    D
    E
    F
    G
    H
    I
    J
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    CopyFormatProblem

    … as you can see the second method ( Part 2) ) has failed to copy the format. It does work If I add actual background color. So clearly what I am seeing as “background color” in the first screen shot is not the background color that I have encountered up until now........
    - Clearly there is something in the File I do not understand -
    - so It will be necessary for anyone trying to help me to see the File. -
    - I therefore upload the File ( The test macro is in the sheet "CopyFormatProblem" Module )
    . - The sheet of interest is sheet "CopyFormatProblem"
    .
    . Questions:
    . Could anyone Please

    . 1 ) Enlighten me on what is going on here to give the discrepancy in the two methods
    . 2 )Explain / show with a code, how I could get Part 2) ( Copying the rows Method ) to also copy the “Background color”
    .
    . Thanks ( From me and the OP waiting for my solution )
    Alan Elston
    Attached Files Attached Files
    Last edited by Doc.AElstein; 06-24-2015 at 06:31 AM.
    '_- Google first, like this _ site:ExcelForum.com Gamut
    Use Code Tags: Highlight code; click on the # icon above,
    Post screenshots COPYABLE to a Spredsheet; NOT IMAGES PLEASE
    http://www.excelforum.com/the-water-...ml#post4109080
    https://app.box.com/s/gjpa8mk8ko4vkwcke3ig2w8z2wkfvrtv
    http://excelmatters.com/excel-forums/ ( Scrolll down to bottom )

+ 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. Replies: 2
    Last Post: 06-11-2014, 01:36 AM
  2. Macro to copy rows based on background color of cells within a range of columns
    By jpitt916 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2013, 06:16 PM
  3. [SOLVED] Macro to copy rows based on background color of cells within a range of columns
    By Chrispelletier in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-19-2013, 01:30 PM
  4. Automatically copy cell background color - NO VALUES
    By blast00 in forum Excel General
    Replies: 5
    Last Post: 12-17-2012, 08:54 AM
  5. Find cell with identical value and copy it's background color
    By PvanS in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-05-2012, 10:21 AM

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