Capture Cell Style in VBA

MrLookout9

New Member
Joined
Jun 25, 2011
Messages
27
Hello and thank you for your help. I have a workbook with two sheets ("Data", "Dashboard"). I have a drop down list of movies on "Dashboard" that has a list of movies contained on "Data". On "Data" I have Cell Styles associated with each Movie. I would like to pass this Cell Style from Data to Dashboard. I have already built a macro to copy the contents of Dashboard A1 (the list) switch to "Data", search for the contents, return to "Dashboard" and update the Cell Style. The only piece I am missing is code to capture the cell style and store it as a variable. Any suggestions? [TABLE="width: 500"]
<tbody>[TR]
[TD]{Data} Hollowman[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Titanic[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Avatar[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]{Dashboard List} Titanic[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
You can copy the cells and paste formats to another cell. You can't copy and paste character-level (rich-text) formatting to another cell.
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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