vba

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

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

VBA

resolvedResolved · Low Priority · Version 2003

Simon has attended:
Excel VBA Intro Intermediate course
Excel VBA Intro Intermediate course

VBA

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

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.

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Quickly hide and unhide rows and columns

Use the keyboard shortcut Ctrl+9 to hide selected rows and Ctrl+0 to hide selected columns. The good thing about this shortcut is that you do not need to select entire rows or columns. For example, select B3:D3 then press Ctrl+0 to hide columns B to D.

Ctrl+Shift+9 unhides rows and Ctrl+Shift+0 unhides columns.

View all Excel hints and tips


Server loaded in 0.07 secs.