Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default TextBox not responding...

Hi,

I have the follow simple code, a form "frm1" is created and attached a
textbox

-------------------------------
Public Sub Auto_Open()

frm1.show

End Sub


Public Sub SubB

frm1.TextBox1.text = "test"

Call SubC

End SubB

'in the activate function of frm1

Private Sub UserForm_Activate()

Call SubB

End Sub
------------------------------------

Why the form frm1 is show, but the text box is not loaded, it is like
something very busy (yes, SubC is very busy), but everything else is okay.

Thanks

Nick
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default TextBox not responding...

Hi,
I just tested your code. it works if you change sub
Auto_open() to sub workbook_open()
:)
-----Original Message-----
Hi,

I have the follow simple code, a form "frm1" is created

and attached a
textbox

-------------------------------
Public Sub Auto_Open()

frm1.show

End Sub


Public Sub SubB

frm1.TextBox1.text = "test"

Call SubC

End SubB

'in the activate function of frm1

Private Sub UserForm_Activate()

Call SubB

End Sub
------------------------------------

Why the form frm1 is show, but the text box is not

loaded, it is like
something very busy (yes, SubC is very busy), but

everything else is okay.

Thanks

Nick
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default TextBox not responding...

Try

Public Sub SubB

frm1.TextBox1.text = "test"
doevents
frm1.repaint
doevents
Call SubC

"Nick" wrote in message
...
Hi,

I have the follow simple code, a form "frm1" is created and attached a
textbox

-------------------------------
Public Sub Auto_Open()

frm1.show

End Sub


Public Sub SubB

frm1.TextBox1.text = "test"

Call SubC

End SubB

'in the activate function of frm1

Private Sub UserForm_Activate()

Call SubB

End Sub
------------------------------------

Why the form frm1 is show, but the text box is not loaded, it is like
something very busy (yes, SubC is very busy), but everything else is

okay.

Thanks

Nick



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default TextBox not responding...

If Auto_open is in a general module it should work as well.

--
Regards,
Tom Ogilvy

"Frank Stone" wrote in message
...
Hi,
I just tested your code. it works if you change sub
Auto_open() to sub workbook_open()
:)
-----Original Message-----
Hi,

I have the follow simple code, a form "frm1" is created

and attached a
textbox

-------------------------------
Public Sub Auto_Open()

frm1.show

End Sub


Public Sub SubB

frm1.TextBox1.text = "test"

Call SubC

End SubB

'in the activate function of frm1

Private Sub UserForm_Activate()

Call SubB

End Sub
------------------------------------

Why the form frm1 is show, but the text box is not

loaded, it is like
something very busy (yes, SubC is very busy), but

everything else is okay.

Thanks

Nick
.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default TextBox not responding...

This work great!

Thanks!!!

Tom Ogilvy wrote:
Try

Public Sub SubB

frm1.TextBox1.text = "test"
doevents
frm1.repaint
doevents
Call SubC

"Nick" wrote in message
...

Hi,

I have the follow simple code, a form "frm1" is created and attached a
textbox

-------------------------------
Public Sub Auto_Open()

frm1.show

End Sub


Public Sub SubB

frm1.TextBox1.text = "test"

Call SubC

End SubB

'in the activate function of frm1

Private Sub UserForm_Activate()

Call SubB

End Sub
------------------------------------

Why the form frm1 is show, but the text box is not loaded, it is like
something very busy (yes, SubC is very busy), but everything else is


okay.

Thanks

Nick




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
Not responding...... Steve Excel Worksheet Functions 0 November 23rd 09 10:25 PM
why does it say not responding genyjoL New Users to Excel 2 October 22nd 09 05:13 AM
Calculate Textbox value based on another textbox value.doc Tdungate Excel Discussion (Misc queries) 1 February 12th 09 07:11 PM
Calculate Textbox value based on another textbox value Tdungate Excel Discussion (Misc queries) 0 February 12th 09 07:03 PM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM


All times are GMT +1. The time now is 12:33 PM.

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

About Us

"It's about Microsoft Excel"