Extracting conditional format from another workbook

pingme89

Board Regular
Joined
Jan 23, 2014
Messages
176
Office Version
  1. 365
Platform
  1. Windows
I would like to extract the conditional format of a cell from another workbook and programmatically recreate it. Is this even possible?
The workbook in question has many many conditional formats but it would be very difficult to get the right color codes and formulas from so many cells manually.

On the same thread, how can I extract information from another workbook regarding borders? Is there a way to test it and get the formatting information programmatically?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
As fare as conditional formating in this case in a macro you could use:.PasteSpecial Paste:=xlPasteAllMergingConditionalFormats.
Use the Macro Recorder to create a macro then adjust it (programmatically) as needed.

Sorry, no idea about borders.
 
Upvote 0
I know how to copy formats, but I want just the conditional formatting parameter data. I have no idea if this is even possible though.
 
Upvote 0
This macro by snb almost does what you are asking for (doesn't list the cell formating, only the range and rule): LINK
 
Upvote 0
Here, this has the complete output in Immediate pane: LINK
 
Upvote 0
Solution
Thanks. That solved my problem, well at least about the text alignment portion.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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