Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Userform does not always show on startup over LAN

Hello All

I have a userform which appears on opening the file. Everything worke
fine during testing.
I shared the file over a LAN and tested. Everything seemed OK
everyone can access the file via a shortcut on their desktops, howeve
I have run into problems which I cannot solve.

One user opens the file and Excel hangs before the userform is shown.
They can only close the file via the manager.

The problem seems specific to one profile as when I log onto the sam
PC everything works ok. The user has the same problem nomatter whic
PC they use to log on.

Does anyone have any suggestions?

Kenny
Using Win 2000 and Office 97
Code below is the startup code

Private Sub Workbook_Open()

'Sheets("Data").Unprotect password:="china"
'Sheets("Lists").Unprotect password:="china"


ThisWorkbook.Unprotect password:="china"


Sheets("Data").Visible = True
Sheets("Lists").Visible = True

Sheets("Data").Select
Sheets("Data").Range("A2").Select


MyPersClose

Load LogEntry
LogEntry.Show


End Sub

Sub MyPersClose()
On Error Resume Next
Windows("PERSONAL.XLS").Close ' in-case Personal.xls is not there
End Su

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Userform does not always show on startup over LAN

do you use code like

Workbooks("bookname")
rather than
Workbooks("bookname.xls")

with the extension. This often causes an error while using the extension
works regardless of local settings.

You can also go to the users machine and clean out the temp directory and
any sub directories below temp such as Excel9.0 or VBE. Obviously this
would be for the profile that is having the problem.


--
Regards,
Tom Ogilvy


"N E Body " wrote in message
...
Hello All

I have a userform which appears on opening the file. Everything worked
fine during testing.
I shared the file over a LAN and tested. Everything seemed OK,
everyone can access the file via a shortcut on their desktops, however
I have run into problems which I cannot solve.

One user opens the file and Excel hangs before the userform is shown.
They can only close the file via the manager.

The problem seems specific to one profile as when I log onto the same
PC everything works ok. The user has the same problem nomatter which
PC they use to log on.

Does anyone have any suggestions?

Kenny
Using Win 2000 and Office 97
Code below is the startup code

Private Sub Workbook_Open()

'Sheets("Data").Unprotect password:="china"
'Sheets("Lists").Unprotect password:="china"


ThisWorkbook.Unprotect password:="china"


Sheets("Data").Visible = True
Sheets("Lists").Visible = True

Sheets("Data").Select
Sheets("Data").Range("A2").Select


MyPersClose

Load LogEntry
LogEntry.Show


End Sub

Sub MyPersClose()
On Error Resume Next
Windows("PERSONAL.XLS").Close ' in-case Personal.xls is not there
End Sub


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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Userform does not always show on startup over LAN

Many thanks Tom

The cleaning of the temp files did the trick - The userform load
visibly faster than on other profiles!

Kenn

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Userform does not always show on startup over LAN

Hello

Sadly I was wrong. The clearing of files was only a temporary fix.
The next day I am back to square one.

Anyone any ideas?

Kenn

--
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
Show username on startup Kasper Excel Discussion (Misc queries) 4 July 22nd 09 02:37 PM
startup a userform Alvin Hansen[_2_] Excel Programming 2 August 15th 04 06:31 PM
Exel VBA- userform startup problem officemanager Excel Programming 2 July 20th 04 04:44 PM
How to Show a userform from XLA sub Thibault Excel Programming 1 December 8th 03 03:36 PM
show a userform Joe[_17_] Excel Programming 0 July 18th 03 03:25 PM


All times are GMT +1. The time now is 03:21 AM.

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"