LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Command Button Color For Next Loop

I can get this to work:
(using "x" as an integer variable)

activesheet.oleobjects("Commandbutton" & x).visible = true

but this doesn't:

activesheet.oleobjects("Commandbutton" & x).forecolor = vbRed

Any ideas on how to change the CommandButton color in a For/Next
loop with a variable?

Thanks,
John


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
change the face color of an Excel command button Chris Leah Excel Discussion (Misc queries) 5 April 21st 23 09:03 AM
Change color of command button dhstein Excel Discussion (Misc queries) 1 May 21st 09 01:08 AM
command button color mark kubicki Excel Programming 1 August 13th 04 05:29 PM
loop command in Macro Rasoul Khoshravan Azar Excel Programming 1 January 6th 04 09:38 AM
loop command in Macro Rasoul Khoshravan Azar Excel Programming 3 January 6th 04 02:10 AM


All times are GMT +1. The time now is 04:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"