LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ant Ant is offline
external usenet poster
 
Posts: 53
Default Programmatically refreshing a data source for a pivot table (olap)

Hi all,

I have a spreadsheet that has an olap connection. When the spreadsheet
loads an ugly error message is displayed before the login is asked for.

I have been asked to make this a little more user friendly.

I hoped to be able to catch the error, cancel it, load a form where the user
can enter login details, make the connection and refresh the data source.

Could anyone point me in the direction of doing this please?

My primary concerns are;
1. catching the error i.e. when the user tries to refresh the data source
(this includes changing a filter).
2. programatically refreshing the connection using given username and
password details.

Any help would be much appreciated. I'm using SQL 2005 with Excel 2007 but
it generally needs to work in most versions of Excel.

Regards,
Phil

 
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
Excel 2000 Pivot table using offline OLAP CUB as the data source Samson Tang New Users to Excel 1 June 26th 07 04:48 PM
OLAP Pivot Table - HT Find source data Katie Excel Discussion (Misc queries) 1 October 17th 06 09:57 PM
how to make my custom formula in OLAP data source pivot table? Abobakr_Nasr Excel Programming 0 February 19th 06 10:56 AM
Pivot Table Row Field Format (OLAP Source) Adrian Morris Excel Discussion (Misc queries) 2 December 16th 05 10:37 AM
OfficeXP "Cannot open pivot table source file" when refreshing pivot table Luc Alquier Excel Programming 2 December 9th 03 11:11 PM


All times are GMT +1. The time now is 11:49 PM.

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"