Conditional formatting doesn't move with macro

HaudYerWeesht

New Member
Joined
Jun 9, 2016
Messages
17
Office Version
  1. 2016
Platform
  1. Windows
I'm not a whiz at Excel and I asked a friend to write me a macro so I can press a button that moves the previous weeks worth of cells to a sperate tab and then another button so I can move them back to the main tab if need be. All that works fine until I decided to add conditional formatting to the cells on the main tab which changes the colour of each cell depending on what information I choose from the dropdown box. It looks ok and then I press the move a week button and the conditional formatting is all over the place in the separate tab and if I press the button to move it back the conditional formatting formula has jumped a week and remains where it was when I moved forward a week

Any ideas how I can sort this out so that the conditional formatting moves with the macro?
Thank you
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi, you could add some code to your existing macro so that it sets up the correct Conditional Formating in the area that you move your data TO, and maybe also deletes it from the area you are moving it FROM.

It's difficult to describe exactly how to do this without knowing what CF you want to apply, but you could try using the Marco Recorder while you make these changes manually, and play around with the results.
 
Upvote 0
Solution

Forum statistics

Threads
1,213,534
Messages
6,114,185
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top