Web Server Logs

W

Warrick FitzGerald

Hi All,

Our web server generates a log file wich I open in excel almost every day.
The log file is space seperated and has an extension of .log

Every time I open the file I run through the procedure of telling excel ..
yes this is a space spepated file and no don't treat consecutive spaces as
one ... bla bla bla.

Is there no way to tell excel that these are the default setting for a
..log file or some other faster way that would not force me to go throuhg
this process every time I open one of these files?

Thanks
Warrick
 
N

Nikos Yannacopoulos

Warrick,

Use the macro recorder to record the whole process of opening any of the log
files. When you have finished your recording, go to the VB editor, and in
your macro insert as your first line the following:
LogToOpen = application.GetOpenFilename
then in the Open statement recodred, substitute the log file name with
LogToOpen (without quotes). Save.
Next time you run the macro you will see the familiar Windows' Open File
dialog box. Select your file and you're done!

HTH,
Nikos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top