Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Sharing Workbook caused error message

My company used a spreadsheet to track jobs that are
either Lost, Comleted or In Progress. A number of macros
are assigned to CommandButtons that allow the listing to
be sorted by Salesperson, Job#, Status, etc.

Everything's been working fine, but lately we've found
that a number of users need to be in the workbook
simultaneously. My thought was to Share the workbook,
which was done, but now, whenever I press any of the
CommandButtons, I get the following error message:

"Run-time error 1004
AdvancedFilter method of Range class failed"

I'm hoping that someone has an easy fix, without having to
delve too deeply into the code, but please let me know if
you need anything else.

Thanks,

Joe





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Sharing Workbook caused error message

Sharing imposes many limitations on what can be done in a workbook. It
appears sorting in allowed, but have you imposed any protection that might
interfer here?

--
Regards,
Tom Ogilvy


"Joe Parisi" wrote in message
...
My company used a spreadsheet to track jobs that are
either Lost, Comleted or In Progress. A number of macros
are assigned to CommandButtons that allow the listing to
be sorted by Salesperson, Job#, Status, etc.

Everything's been working fine, but lately we've found
that a number of users need to be in the workbook
simultaneously. My thought was to Share the workbook,
which was done, but now, whenever I press any of the
CommandButtons, I get the following error message:

"Run-time error 1004
AdvancedFilter method of Range class failed"

I'm hoping that someone has an easy fix, without having to
delve too deeply into the code, but please let me know if
you need anything else.

Thanks,

Joe







  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Sharing Workbook caused error message

Tom,

Thanks for the reply.

As far as I can tell, there are no protections in place.
I've included a sample of code that was linked to one of
the buttons that generates an error message. I hope this
will clarify things a little (the comments at the end of
each line are my own):

Sub PM()
'
'
'
Range("AN3:AO20").Select 'This is a list of possible
Salespeople (AN = Primary and AO = Secondary)
Selection.Copy
Range("D3").Select 'This changes to the selected
Salesperson (in this case, PM)
ActiveSheet.Paste
Application.CutCopyMode = False
On Error GoTo ErrorHandler
ActiveSheet.ShowAllData
ErrorHandler:
Range("A22:AU2000").AdvancedFilter
Action:=xlFilterInPlace, CriteriaRange:= _
Range("D2:E20"), Unique:=False
Range("A22").Select
ActiveWindow.LargeScroll Down:=-1
End Sub


I hope this helps. If you need anything else, please ask.

Joe


-----Original Message-----
Sharing imposes many limitations on what can be done in a

workbook. It
appears sorting in allowed, but have you imposed any

protection that might
interfer here?

--
Regards,
Tom Ogilvy


"Joe Parisi" wrote in

message
...
My company used a spreadsheet to track jobs that are
either Lost, Comleted or In Progress. A number of

macros
are assigned to CommandButtons that allow the listing to
be sorted by Salesperson, Job#, Status, etc.

Everything's been working fine, but lately we've found
that a number of users need to be in the workbook
simultaneously. My thought was to Share the workbook,
which was done, but now, whenever I press any of the
CommandButtons, I get the following error message:

"Run-time error 1004
AdvancedFilter method of Range class failed"

I'm hoping that someone has an easy fix, without having

to
delve too deeply into the code, but please let me know

if
you need anything else.

Thanks,

Joe







.

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
Sharing workbook error message Deb[_2_] Excel Discussion (Misc queries) 1 May 3rd 10 11:16 PM
Sharing workbook error message LFox Excel Discussion (Misc queries) 0 April 16th 10 06:59 PM
Some users sharing a workbook getting read only message owl37 Excel Discussion (Misc queries) 1 August 4th 06 04:13 PM
Sharing Workbook Info message ? Jim May Excel Discussion (Misc queries) 0 December 6th 05 10:28 PM
File Sharing Problems - Error Message Kristi - Skills Group Excel Discussion (Misc queries) 1 December 17th 04 05:50 PM


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