If you look in the help for worksheetfunctions available in VBA, you'll see that
the 3 you mention are all available in VBA.
But Upper/lower are not. Maybe because VBA has it's own Ucase and LCase
functions (along with strconv) that do the same thing (except that they all act
on one item).
Trim also is in both VBA and excel proper, but it does slightly different things
(The worksheet function removes consecutive spaces within the string, while the
vba function does not.)
===
But to your bigger point, it would be nice to be able to do things like:
selection.value = Ucase(selection.value)
or
selection = ucase(selection)
for ranges with more than one cell.
I don't have an answer why it doesn't work.
Quote:
> Hi all
> By coincident I found that this subs are working.
> It is strange because the upper and lower don't work and the proper does.
> ltrim not and trim does??
> Are there more things like this???
> Regards Ron
> Sub a()
> Selection.Value = Application.Trim(Selection.Value)
> End Sub
> Sub b()
> Selection.Value = Application.Proper(Selection.Value)
> End Sub
> Sub c()
> Selection.Value = Application.Dollar(Selection.Value)
> End Sub
--
Dave Peterson