Need VBA Help with INDIRECT Function + Data Validation

Ramtrap

New Member
Joined
Jan 12, 2016
Messages
3
Hello,

I followed this Contexture's advice on how to create a spreadsheet whereby data validation allows for type-ahead, larger text, etc. : http://www.contextures.com/xlDataVal10.html

The problem I'm having, however, is I don't know the VBA necessary to ensure that using data validation with an INDIRECT function keeps the formatting the same.

Example:

Column A has a List of Fruits (Apples, Bananas, Oranges)
Column B will display a list of option, dependent upon what Fruit was selected (ex: Apples = {Red, Small, Sweet}, Bananas = {Yellow, Medium, Bland}, Oranges = {Orange, Large, Citris})

I have no issues with creating the lists (Control + F3, create the named ranges, etc.). My issues stems (again) from the VBA. When I click the first box (Data Validation for a cell in column A shows all the fruits in Comic Sans MS, Font size 16, green) but when I click a cell in column B (which I'm doing Data Validation: =INDIRECT(A3), the VBA doesn't translate. I DO get the options in the list, but I'm not getting the formatting changes set by the VBA/macro.

Can anyone help me out with this?

Thanks!

Will
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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