Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel macro, cant align value to centre

Status
Not open for further replies.

dporrelli

Programmer
Dec 18, 2002
43
GB
I have created a Macro which is a drop-down box with values (1,2,3,etc). It takes these values from a hidden sheet.
We are trying to have the values centred rather than aligned to the left. I have set the cell to centre and the values in the hidden sheet to centred also, but the value still remains aligned to the left, any ideas?

Thanks
 
Is this a recorded macro or built from scratch?

If it was recorded when the hidden cell was formatted to left alignment, then the macro probably kept the original left alignment and is overriding your new format.
 


Hi,

You created a macro, but have us guessing at what has been recorded in your macro! ???

Please post.

Skip,
[sub]
[glasses] [red]Be Advised![/red] A chicken, who would drag a wagon across the road for 2 cents, is…
POULTRY in motion to PULLET for a PALTRY amount! [tongue][/sub]
 
It does not matter how the source range is formatted (and the code behind drop-down). Guess that you use a control from the 'Forms' toolbar, the font and alignment settings are not provided in this case.
For combobox from 'Control toolbox' toolbar, you can access control properties in design mode. The behaviour of this control is slightly different however.

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top