|
-
Jan 25th, 2004, 10:54 PM
#1
Thread Starter
Fanatic Member
texts or string input..
appXL1.ActiveSheet.Cells(Number, 3).Value = txtQty.Text
the above statement when i key in txtQty.Text as numbers....the spreadsheet could show the numbers however when i key in letters..error: application-defined or object dfined error....why?
-
Jan 26th, 2004, 03:38 AM
#2
Addicted Member
Input to text boxes always comes out as text.
Perhaps you need to be more explicit and inlclude the form, something like:
appXL1.ActiveSheet.Cells(Number, 3).Value = MyUserFormName.txtQty.Text
Perhaps the error is somewhere else in your code. If the above doesn't work, post the whole code. Where are you running it from ?
Regards
BrianB
-------------------------------
-
Jan 26th, 2004, 03:43 AM
#3
Thread Starter
Fanatic Member
hi..how do i post a zip file ?to that you can have a look?
-
Jan 26th, 2004, 03:55 AM
#4
Thread Starter
Fanatic Member
i have try the methods by puting frm. in front but still wont work..
-
Jan 26th, 2004, 11:14 AM
#5
Rather than uploading a zip file, try to post a smaller / cut down portion of your code relavant to the above question.
In response to this one, try leaving out this .value part & seeing if this makes a difference first...
-
Jan 28th, 2004, 09:31 AM
#6
Frenzied Member
Is that cell formatted to Numbers? Maybe there's a type mismatch if you use letters?
-
Jan 28th, 2004, 09:34 AM
#7
Thread Starter
Fanatic Member
i have solve the problem ...its actually yhe logical error..thanks to your reply..
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
|