My appologies Skip ( I was 'speaking' to xlhelp in the other forum and thought he'd be here)
Problem:
When altering a 2006 spreadsheet for use in 2007, the buttons Ive been using quite sucsessfully to navigate between a suite of 7 sheets have started now to either grow or shrink each time they are used. These buttons were created via the ControlToolbox and I was advised to use the Forms route. I've done this but the resultant buttons have an unchangable backgorund colour and I am told the only way to change this is by VBA.
Question: How do I change the background colour of a button in VBA?
AD
You were formerly advised to make the control a Forms control.
AFAIK, the Background Color of a Forms control cannot be changed. You CAN change the Font Color.
If you need to use a Control Toolbox control, the background can be changes as Hugh described. In addition, yoju might ALSO set the Font Size, as this seems to be the sticking point, that the Font Size was changing in the Caption.
Ive tried that (the button I'm working with is labled 'Button 31' ie not commandbutton31 and has a space before the '31') but it hasnt worked. Ive put the code into the same module as VB did when it created the orginal button. Does it need to go somewhere speacial?
AD
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.