Need VB help

golfduke

New Member
Joined
Feb 17, 2009
Messages
3
I am using excel 2000.
How do I Change the format of a fields to Bold and Alignment Horizontal to Left indent and the Indent to the value of a field? This needs to happen for a range of rows. The range can be variable depending on how much data is in the spreadsheet.
So if Field b2=2 I want to field A2 Bold and Horizontal of Left Align and Indent of 1-B2 (so indent of 1).
Conditional formatting does not do it.
I am not familiar with VB enough to do this by myself.

Thanks

Steve
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Welcome to the Board!

You can record a macro applying the settings you want. If you post the code you get someone can tweak it to be dynamic.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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