VBA Ads

Friday, February 8, 2008

My First VBA tips

Hello VBA developer,



From now onwards, am going to post topics (tips) related to VBA (Access & Excel).

Before that, am greatfully thankful to my Boss Naresh Nichani (Access MVP) and Virtual Boss Brian Reilly(Power Point MVP), who are giving more oppotunities to learn, develope and design the stuffs in VBA (Excel and Access).



Here is my first Tip in Excel.

Custom Formats

Without using the conditional formatting, we can customize the format (Font Color), based on cell value (applicable to number)



[Red]"Export";[Blue]"Import";[Black]"Balance"



First Copy the above line (in brown color) and then right click any one of the cell in excel sheet (where do u need to format),

Select "Format Cells" --> "Number" tab --> Click "Custom" --> paste it in "Type " text box.

For Eg:

Lets assume, you assigned the above custom format in cell "A2",

Then if Cell value is + ve then Export text will be displayed
is - ve then Import text will be displayed
is 0 then Balance text will be displayed

Hope you understand that, If any queries or doubts, please let me know, by commenting this post.

Thanks & Regards,
Karthick

2 comments:

Wazza said...

Thanks for visiting my blog - I have changed it so that code is now properly indented.

For your part I think that if your blog is about VBA, you need to post some! It may be more accurate to describe it as an Access blog?

Just tackle the problems you face in your day to day work and when you crack something that may be of use to others, post away.

Regards,
Wazza

nkarthick said...

Thanks for your comments, i will do my best