|
-
Jan 8th, 2006, 03:59 PM
#1
Thread Starter
Junior Member
Reference textbox data from excel function
I have created textbox1 on an excel spreadsheet and placed a number in it. I have written a function to get that number into an excel cell:
Public Function GetValue(Obj as Object)
Dim x as String
x = Obj.Value
GetValue = x
End Function
then in excel cell I call function:
=GetValue(TextBox1)
I can't get this work and feel I must be missing something pretty basic. It would be very valuable to be able to place data in textboxes, comboxes, etc. and then reference that data in excel functions for use use in excel formulas.
Regards, Dennis
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|