+ Reply to Thread
Results 1 to 4 of 4

Swap range of cells and keep background colours

  1. #1
    Registered User
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    2

    Swap range of cells and keep background colours

    Hi

    I am putting together my school timetable and it would be really useful if I could highlight two identically sized ranges and run a macro that would swap the contents and the background colours. I have found a macro online that will swap the contents, but not the colours.

    I have attached a sample of the timetable to illustrate my issue.

    Many thanks for your consideration.

    Desisample.xlsx

  2. #2
    Valued Forum Contributor
    Join Date
    06-19-2010
    Location
    Holywell, N Wales, UK
    MS-Off Ver
    Excel 2013
    Posts
    470

    Re: Swap range of cells and keep background colours

    Try this to "copy" the formats

    Please Login or Register  to view this content.
    If this was helpful then please click the small star icon at the bottom left of my post. A little appreciation goes a long way.

  3. #3
    Registered User
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Swap range of cells and keep background colours

    Thank you for your reply.

    How would that fit into this code which swaps the content?

    Desi

    Please Login or Register  to view this content.
    Last edited by vlady; 01-15-2013 at 07:35 PM. Reason: dont forget code tags around codes

  4. #4
    Valued Forum Contributor
    Join Date
    06-19-2010
    Location
    Holywell, N Wales, UK
    MS-Off Ver
    Excel 2013
    Posts
    470

    Re: Swap range of cells and keep background colours

    desimck
    A simple if not technically elegant solution that should meet your needs

    swapsample.xlsm

+ 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