Conditional Formatting Reference Error

Coyotyto

New Member
Joined
Feb 4, 2016
Messages
5
I currently have Conditional Formatting using the Formula:

Code:
=(C6/'Q1 2016'C6)<-$H$39


That applies to a worksheet. The Issue I am having is that the worksheet I am using in the Formula 'Q1 2016' Is one that I import into my Workbook through a Macro. So when I run through entering a new Quarters data the Condtional Formatting becomes:

Code:
=(C6/#REF!C6)<-$H$39


I am wondering If there is something I can manipulate with the formula to not have to write another Macro to check for this conditional formatting. But if so how would I go about creating the macro in VBA.

Some things that may Help the worksheet I am using the conditional formatting in will not be changed and is call "Calculations". The worksheet for the Quarter data that I am using in my Formula in this case 'Q1 2016' will always be the first worksheet in my workbook.

Thanks,
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
When it is time to bring in data for Q2 2016, how does your macro do this? Can you show us the code?

It should be possible to rename the 'Q1 2016' sheet as 'Q2 2016', so that your conditional formatting formula (and presumably there must be other formulae referencing this sheet?) still work.

 
Upvote 0

Forum statistics

Threads
1,215,039
Messages
6,122,799
Members
449,095
Latest member
m_smith_solihull

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