#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default forms

Changed modal property and it worked. Shouldn't have to
do that but alls well that ends well
-----Original Message-----
I am creating an application in Excel 2000. A custom

menu
bar opens a form that contains a listbox and two control
buttons. One of the control button's function is to

close
the form. The code used is simply unload frmJob(name of
form). It takes two attempts to close this form. It
appears when the form is loaded it is being loaded

twice.
If I walk through the code it behaves the way intended.
Why would the form be loaded twice. The code to load the
form is as follows:
Function OpenFrm()

Dim rng As Range
Dim ws As Worksheet

Set ws = Sheet4
Set rng = ws.Range("b8")



With rng
Do Until rng.Value = ""
frmJob.lstJob.AddItem rng.Value
Set rng = rng.Offset(1, 0)
Loop
End With



'Load frmJob
frmJob.Show

End Function


any help is appreciated
.

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
Forms ChrisLouie Excel Discussion (Misc queries) 4 July 18th 07 11:04 PM
forms Mike Excel Worksheet Functions 1 May 2nd 07 12:17 AM
Forms Karen Excel Discussion (Misc queries) 1 July 25th 06 01:05 PM
forms Monty Excel Discussion (Misc queries) 2 October 17th 05 01:54 PM
Pop Up Forms TBD Excel Discussion (Misc queries) 9 January 27th 05 04:27 PM


All times are GMT +1. The time now is 01:37 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"