Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default form won't unload

Could someone tell me what is wrong with the following code snippet. At the
end, the form still remains visible. I have tried inserting
elliottinput.hide before the unload but it still is visible.

elliottInput.Show
flname = elliottInput.TextBox25.Value
' check that a data path to directory has been entered
Do
If Not bOK Then Exit Sub
If elliottInput.TextBox26.Value < "" Then Exit Do
MsgBox " A path to the data file directory must be entered "
elliottInput.TextBox26.SetFocus
elliottInput.TextBox26.SelStart = 0
elliottInput.TextBox26.SelLength = 1000
elliottInput.Show
Loop
If elliottInput.ListBox2.Value = "BACKTEST" Then
sd = elliottInput.TextBox3.Value
Else
sd = "01/01/1901"
End If
pp = elliottInput.TextBox1.Value
lrtr = elliottInput.TextBox4.Value
urtr = elliottInput.TextBox18.Value
sp = elliottInput.TextBox24.Value
dataPath = elliottInput.TextBox26.Value
antype = elliottInput.ListBox2.Value
lors = elliottInput.ListBox3.Value
If elliottInput.TextBox27.Value < "" Then
edate = elliottInput.TextBox27.Value
Else
edate = "31/12/2099"
End If
Unload elliottInput

The form works ok and all data are properly collected but it won't unload
till the end of the program

Thanks
Chris


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default form won't unload

You have this line *within the Do...Loop*
elliottInput.Show

Perhaps poor old Excel gets confused

--
Message posted from http://www.ExcelForum.com

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
XLA Unload problem Von Shean Excel Programming 1 January 10th 04 08:24 PM
can i have VBA & forms etc load then unload? Chris A[_3_] Excel Programming 0 November 20th 03 11:14 PM
Unload Me Chip Pearson Excel Programming 0 September 5th 03 12:56 AM
Form Unload Khai[_2_] Excel Programming 0 August 4th 03 09:28 PM
Unload from Memory Charles Williams Excel Programming 0 July 18th 03 08:42 AM


All times are GMT +1. The time now is 02:39 AM.

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"