Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default Won't accept textbox3

I'm using a userform to input data. When I put this line in my code:

sFacilName = TextBox3.Text

It keeps telling me TextBox3 is undefined. But it is in the userform. I
can't find any "definition" of Textbox1 in Walkenbach's example of a
userform. I also tried it with the other textbox in the form, doesn't
recognize that one either. So what is different about my code that it
doesn't recognize the controls in it?

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default Won't accept textbox3

where is your code - if it is on the userform, then it should be OK,
but if it is in a module outside of the code then you would need
userform1.textbox3.text

this may be one of those cases where it is useful to see the form so if
that DOESN'T resolve it my email is as my posting name!

davegb wrote:
I'm using a userform to input data. When I put this line in my code:

sFacilName = TextBox3.Text

It keeps telling me TextBox3 is undefined. But it is in the userform. I
can't find any "definition" of Textbox1 in Walkenbach's example of a
userform. I also tried it with the other textbox in the form, doesn't
recognize that one either. So what is different about my code that it
doesn't recognize the controls in it?

Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Won't accept textbox3


Hi Dave,
Your code is correct. Check once more whether textboz3 exists or not.
Otherwise delete the textboz and recreate it. Hope it will solve th
problem.
Regards,
Ashis

--
ashishpre
-----------------------------------------------------------------------
ashishprem's Profile: http://www.excelforum.com/member.php...fo&userid=3148
View this thread: http://www.excelforum.com/showthread.php?threadid=55037

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default Won't accept textbox3

Thanks to both of you. Finally got it working. I had to delete and
recreate both textboxes to get them to work. Don't understand why. Very
frustrating!

ashishprem wrote:
Hi Dave,
Your code is correct. Check once more whether textboz3 exists or not.
Otherwise delete the textboz and recreate it. Hope it will solve the
problem.
Regards,
Ashish


--
ashishprem
------------------------------------------------------------------------
ashishprem's Profile: http://www.excelforum.com/member.php...o&userid=31485
View this thread: http://www.excelforum.com/showthread...hreadid=550378


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accept or Reject a value crabflinger Excel Worksheet Functions 1 April 3rd 09 05:46 PM
Track/Accept Changes WhOkNoWs Excel Worksheet Functions 0 August 22nd 07 02:26 PM
TextBox1.value=TextBox2.value-(TextBox3.value+TextBox4.value) helmekki[_29_] Excel Programming 1 October 15th 04 04:15 AM
TextBox1.value=TextBox2.value-(TextBox3.value+TextBox4.value) helmekki[_27_] Excel Programming 2 October 15th 04 12:32 AM
TextBox1.value=TextBox2.value-(TextBox3.value+TextBox4.value) helmekki[_26_] Excel Programming 2 October 14th 04 05:23 AM


All times are GMT +1. The time now is 05:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"