Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Function Test(Classe, osserv As Range, Dst As String, ParA, ParB) As Single
.... Dist as string .... Dist = Application.WorksheetFunction.Upper(Dst) .... executing the "Dist = ..." statement VBA stops abnormally (without any message) Have you encountered this problem? Alex. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
According to help, that's not included in the worksheet functions available
to VBA. Use the VBA function Ucase. hth, Doug "y" wrote in message ... Function Test(Classe, osserv As Range, Dst As String, ParA, ParB) As Single ... Dist as string ... Dist = Application.WorksheetFunction.Upper(Dst) ... executing the "Dist = ..." statement VBA stops abnormally (without any message) Have you encountered this problem? Alex. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
use Dist = UCase(Dist) -- Regards Frank Kabel Frankfurt, Germany "y" schrieb im Newsbeitrag ... Function Test(Classe, osserv As Range, Dst As String, ParA, ParB) As Single ... Dist as string ... Dist = Application.WorksheetFunction.Upper(Dst) ... executing the "Dist = ..." statement VBA stops abnormally (without any message) Have you encountered this problem? Alex. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sonny Kocak[MSFT] wrote
dist = UCase$(dst) What is the difference between UCase$ and UCase -- David |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
David,
What is the difference between UCase$ and UCase UCase$ (and all string related functions that end in '$') returns a String type result, while UCase (and string related functions that do not end in '$') return Variant data types. The '$' functions are more efficient because the compiler does not need to emit instructions to extract the string data out of the Variant. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "David" wrote in message ... Sonny Kocak[MSFT] wrote dist = UCase$(dst) What is the difference between UCase$ and UCase -- David |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Chip Pearson wrote
UCase$ (and all string related functions that end in '$') returns a String type result, while UCase (and string related functions that do not end in '$') return Variant data types. The '$' functions are more efficient because the compiler does not need to emit instructions to extract the string data out of the Variant. Thanks for the explanation. -- David |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reuse Application.WorksheetFunction | Excel Discussion (Misc queries) | |||
Application.WorksheetFunction error | Excel Discussion (Misc queries) | |||
Need help with Application.WorksheetFunction | Excel Discussion (Misc queries) | |||
application.worksheetfunction.mmult help | Excel Programming | |||
Using Application.WorksheetFunction.Ln(...) in VBA | Excel Programming |