Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Activate fails when someone else is in the sheet

In my workbook open function (shown here), I activate my two tabs and call a
routine to do "ShowAllData" (they both use autofilter). Both sheets are
protected w/password and the workbook itself has a password for opening.

The sheet works fine for the first person that gets in, but when a second
user tries to access the same workbook, they get an "Activate method failed,
error 1004" on the first Activate statement.

The error doesn't occur in all cases, this morning I went into a sheet that
was locked by someone else, but didn't get the error, plus I haven't been
able to recreate it with co-workers. Does anyone have ideas for why this
could happen?

Private Sub Workbook_Open()
Dim MyDate
MyDate = Date
If MyDate #8/1/2005# Then
Worksheets("NonExempt").Activate
Call SetProtect
Worksheets("Exempt").Activate
Call SetProtect
MsgBox ("Autofilter is available in this workbook. Feel free to set
filters to allow viewing/printing of desired subsets of data.")
End If
End Sub
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
Code fails when sheet is protected Tail Wind Excel Discussion (Misc queries) 3 September 4th 07 03:23 PM
Activate method of Worksheet class fails in Excel 2000 Chris Bloom Excel Discussion (Misc queries) 3 September 10th 05 12:05 AM
MoveAfterReturn fails because sheet is protected quartz[_2_] Excel Programming 2 April 2nd 05 03:25 AM
Return to Current Sheet in On (sheet activate) event macro Paul Moles Excel Programming 1 March 27th 05 03:16 PM
Copy to another sheet fails Ole[_4_] Excel Programming 1 March 24th 05 09:14 PM


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