vba
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA

VBA

resolvedResolved · Low Priority · Version 2003

replyReply Mon 29 Jun 2009, 16:54Delegate Simon said...

VBA

Where can I get the list of codes for the various format colours in excel and vba?

For upcoming training course dates see: Pricing & availability

replyReply Wed 1 Jul 2009, 10:10Trainer Stephen said...

RE: VBA

Hi Simon

Thanks for your question

Colour can be defined in a number of ways in VBA

VBA colour constants (vbRed, VbGreen etc) are listed in help. Type VBA Colour Constants into the VBE help editor

VBA colour index numbers are listed in file I have attached to this post

The RGB function allows you to specify any colour. The technique here is to open excel, draw and object (Say a circle) and then select colour fill and choose more fill colours and custom. You can then choose the eact colour that you want and enter the three numbers into an RGB function

Regards

Stephen

Attached files...

Number Index Table.xls

Tue 7 Jul 2009: Automatically marked as resolved.

 

Please browse our web site to find out more about
excel training courses and other Microsoft training courses.

Excel tip:

Copying the same value, label or formula quickly into a range of selected cells.

Select your range of cells. Type the value, label or formula that you want to appear in all the selected cells and then press Ctrl+Enter.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard