Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
a string object
Hello, How do I setup a string object in a function receiving a string
parameter? Thank you Daniel |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
a string object
In the simple example below, "tmp" is the variable (parameter/arguement) which is a string
Function sample(tmp As String sample = tm End Functio |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
a string object
Daniel,
I'm not sure what your question is, but perhaps the following will be of some limited use. Public Function TheFunction(S As String) As String Dim St As String St = UCase(S) TheFunction = St End Function You might want to provide a bit more details about what you are trying to accomplish. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Daniel" wrote in message ... Hello, How do I setup a string object in a function receiving a string parameter? Thank you Daniel |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
a string object
While replying to include the code, it just struck me that I was using the
variable name between "" while I should not have. Thanks, I don't have any problem now. _____________ "Chip Pearson" a écrit dans le message de ... Daniel, I'm not sure what your question is, but perhaps the following will be of some limited use. Public Function TheFunction(S As String) As String Dim St As String St = UCase(S) TheFunction = St End Function You might want to provide a bit more details about what you are trying to accomplish. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Daniel" wrote in message ... Hello, How do I setup a string object in a function receiving a string parameter? Thank you Daniel |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
2 Label Options - Forms Object vs Control Box Object | Excel Discussion (Misc queries) | |||
Object Variable Not Set Error on Selection object | Excel Worksheet Functions | |||
Using a string to point to a form object? | Excel Programming | |||
Range object to Array object conversion | Excel Programming | |||
Range object to Array object conversion | Excel Programming |