PC Review


Reply
Thread Tools Rate Thread

ActiveWorkbook.RefreshAll deosn't work in shared mode, "calculate" doesn't either

 
 
SK
Guest
Posts: n/a
 
      30th Jan 2007
have a shared workbook with some fairly intensive calculations
included, so I have the application calculate set to xlmanual as
default.

I have some query tables that the workbook then does some analysis on
and gives out results when the user pushes a button.


All this works fine and perfect when in exclusive mode. However when
I
share the file I get Error 1004 when ActiveWorkbook.RefreshAll is
called and Selection.Calculate does not update the results from the
querytable, even though no errors pop up.


Can someone please tell me what is going on? I can provide code if
that will help.


Cheers,
SK

 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      30th Jan 2007
Do you have any pivottables in the workbook. You can't update or change
pivottables.

--
Regards,
Tom Ogilvy


"SK" wrote:

> have a shared workbook with some fairly intensive calculations
> included, so I have the application calculate set to xlmanual as
> default.
>
> I have some query tables that the workbook then does some analysis on
> and gives out results when the user pushes a button.
>
>
> All this works fine and perfect when in exclusive mode. However when
> I
> share the file I get Error 1004 when ActiveWorkbook.RefreshAll is
> called and Selection.Calculate does not update the results from the
> querytable, even though no errors pop up.
>
>
> Can someone please tell me what is going on? I can provide code if
> that will help.
>
>
> Cheers,
> SK
>
>

 
Reply With Quote
 
SK
Guest
Posts: n/a
 
      1st Feb 2007
Hi Tom,

They are not pivottables, they are quearytables displaying the results
of queries that reside in the access db.

The only soluion i can think of is using (and this may come up against
the same issue anyway) an intermediate workbook that the shared
workbook can reference to and so does not have to deal with updating
query tables. the intermediate can be be made exclusive hence the
query tables in there can update themselves when a VBA function from
the shared workbook tells it to do so. But that solution is rather
big, and I'd rather not do it if I don't have to, especially
considering I have no idea if it will work or not.

out of interest, why can't pivottables be updated in shared mode?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wirless Network Doesn't work after "hibernation or sleep" mode =?Utf-8?B?c2FpbG9yc3hl?= Windows Vista Networking 2 19th Aug 2007 05:51 PM
how do i get the "RefreshAll" method to work in a macro =?Utf-8?B?c2xvYW4=?= Microsoft Excel Programming 4 2nd Aug 2007 08:24 PM
"Shared by Me" search doesn't work in Explorer David Windows Vista General Discussion 0 4th Jun 2007 03:47 PM
Advance to "Next Slide" doesn't work in Custom Show Mode. =?Utf-8?B?RGF3Z21h?= Microsoft Powerpoint 4 18th Jul 2006 02:21 PM
W2K Pro - "Shared" folder doesn't work when offline Mark Microsoft Windows 2000 Networking 0 26th Nov 2003 03:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:07 PM.