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: Font colour for whole worksheet

Status
Not open for further replies.

SimonFinn

Programmer
Mar 13, 2003
130
GB
Hi

Is there a method of changing the font colour of the whole worksheet to black using VBA?

Thanks Si
 
sheets("Sheetname").cells.font.colorindex = 1

Rgds, Geoff
[blue]Si hoc signum legere potes, operis boni in rebus Latinus alacribus et fructuosis potiri potes![/blue]
Want the [red]best[/red] answers to your questions ? faq222-2244
 
Thanks Geoff,

Could i ask another question: how can i disable a command button from a module?

Thanks Si
 
Depends what you mean by disable, what kinda button (Forms or Controls menu) and where the button is (sheet or userform)



Rgds, Geoff
[blue]Si hoc signum legere potes, operis boni in rebus Latinus alacribus et fructuosis potiri potes![/blue]
Want the [red]best[/red] answers to your questions ? faq222-2244
 
Hi
an example would be
Code:
CommandBars("standard").Controls("Save").Enabled = False / True

;-)

If a man says something and there are no women there to hear him, is he still wrong? [ponder]
The faqs ma'am, just the faqs. Get the best from these forums : faq222-2244
 
Thanks for the help, both solutions worked a treat!!

Cheers Si
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top