Solved

Capital Letters In Filenames

Posted on 2001-07-08
4
502 Views
Last Modified: 2012-06-27
Hi!
I'm working on a program that renames multiply files. The files contains underscore and the program replaces them with space.

My program changes the filename from:
the_files_looks_like_this.txt
to:
the files looks like this.txt

I'm looking for another feature for my program which is a function that change the small letters to capital letters so the file looks like this when all changes has been made. Now the file should look like this:
The Files Looks Like This.txt
0
Comment
Question by:Ecmil
  • 3
4 Comments
 
LVL 7

Accepted Solution

by:
Inteqam earned 50 total points
ID: 6262349
StrConv(YourString,vbProperCase)
0
 
LVL 7

Expert Comment

by:Inteqam
ID: 6262350

StrConv("the files looks like this.txt",vbProperCase)
would produce
The Files Looks Like This.txt
0
 

Author Comment

by:Ecmil
ID: 6262357
Excellent!!!

Thanks a lot!!!!
0
 
LVL 7

Expert Comment

by:Inteqam
ID: 6262359
anytime
:)
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

820 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