+ Reply to Thread
Results 1 to 6 of 6

Debugging Macro to Copy over just Conditional Formatting

  1. #1
    Registered User
    Join Date
    03-31-2015
    Location
    Dallas, TX
    MS-Off Ver
    MS Office 2013 Professional
    Posts
    3

    Debugging Macro to Copy over just Conditional Formatting

    Hi,

    I am working on a macro which copies data from multiple sheets, creates a new sheet and pastes it in the new sheet sequentially and then sorts the data based on a column called "Region". But, every time this macro is run the conditional formatting rules change their ranges and multiply. maybe I thought it's because of all the CF from the original sheets are getting added which is sort of messing up the ranges and multiplying the rules. So once the new sheet is ready, I strip it off of all the conditional formatting and then copy the CF from one of the sheets and paste it with paste special -> formats on the new sheet but it still isn't carrying over the CF.

    I am using Excel 2010 and here is my code which only shows the part where the CF is stripped off, haven't included the pastespecial for formats to the new sheet, any help would be really appreciated:


    Please Login or Register  to view this content.

    Any Suggestions or help would be greatly appreciated.
    Last edited by aadilshakir; 05-08-2015 at 12:42 PM.

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Debugging Macro to Copy over just Conditional Formatting

    Per forum rule #3 please put code tags around your code.

    You can easily do this by editing your original post. Highlight all your code and select the # from the toolbar and click save changes.

    Thanks.
    Last edited by skywriter; 05-08-2015 at 12:49 PM.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Registered User
    Join Date
    03-31-2015
    Location
    Dallas, TX
    MS-Off Ver
    MS Office 2013 Professional
    Posts
    3

    Re: Debugging Macro to Copy over just Conditional Formatting

    Thanks for the direction! Could you please help me out with my issue?

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Debugging Macro to Copy over just Conditional Formatting

    Are you able to post a copy of the workbook with sensitive data removed?
    I've read your code, but I have to see the problem, see the CF and test your code with your data to help you.

  5. #5
    Registered User
    Join Date
    03-31-2015
    Location
    Dallas, TX
    MS-Off Ver
    MS Office 2013 Professional
    Posts
    3

    Re: Debugging Macro to Copy over just Conditional Formatting

    There is too much sensitive data in it, if I removed it- all that will be left would be a blank sheet. I know looking at the sheet would provide more clarity on the issue. If there another to go about it?

  6. #6
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Debugging Macro to Copy over just Conditional Formatting

    I used the wrong term. You should change the sensitive data. If it's a name change it to John Doe, Jane Doe etc, if there's an account number just make up a fictitious one. You don't need all the rows either. So if you have thousands of rows, just delete all but a few.

    Quote Originally Posted by aadilshakir View Post
    There is too much sensitive data in it, if I removed it- all that will be left would be a blank sheet. I know looking at the sheet would provide more clarity on the issue. If there another to go about it?

+ 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. [SOLVED] Debugging macro to copy and paste cells if not empty
    By unaragazza in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-18-2014, 11:04 PM
  2. [SOLVED] Help debugging macro
    By kellynicolebarrett in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-16-2014, 09:17 AM
  3. [SOLVED] Debugging a macro
    By jharaldson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2013, 01:52 PM
  4. [SOLVED] Macro debugging
    By VelvetRevolver84 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-01-2013, 06:14 PM
  5. Debugging macro
    By annep in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-20-2006, 06:18 PM

Tags for this Thread

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