Solved

Makin errors print in capitals!

Posted on 2003-12-04
1
164 Views
Last Modified: 2010-05-01
hi experts...

im currently writing a log confirmin wen each sub routine is completed / wen an error occurs...

my problem is that i want the normal completion log parts to be lower case and the error logs to b in caps ...
this is wot im after...

sub_sortFile: completed
sub_addlink: completed
SUB_PRODUCE TEXT: ERROR:- TEXT NONE EXISTANT.... etc
-----------------^----------------   -----------^-------------
iv got this bold but                     but i need this bold ... it is eg err.description

cheers matt
0
Comment
Question by:MattAllen
1 Comment
 
LVL 13

Accepted Solution

by:
crazyman earned 50 total points
ID: 9873671
when you say you are writing it i presume you are writing it to a text file, you cant specify fontsize, bold etc in a text file this is decided by the text viewer...
However you can specify the case, to convert to upper case just use
ucase$(err.description)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question