LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default OLE Link bug introduced in Excel 2003 SP3

Hello,

I think I have discovered an error introduced in service pack 3 for
Excel 2003 regarding OLE linking from a named range.

We have an application that makes extensive use of the uniform data
transfer facilities of OLE (namely we allow users to "Paste Link" data
from Excel to our application and keep the data up-to-date by
responding to data change notifications via IDataObject.DAdvise).
This was all well and good until Office 2003 SP3 was rolled out when
there was a change in behaviour when the data source is a Named Range.

Previously (SP2), obtaining the OLE source display name (via
IOleLink.GetSourceDisplayName) would return a string of the format
Book1.xls!Sheet1!R1C1:R5C1 for a standard excel selection or Book1.xls!
Sheet1!TestRange if the source was a Named Range (called "TestRange"
in this example).

Now (SP3) the un-named range behaves as before, but the string
returned for the named range is of the form Book1.xls!Sheet1!
R1C1:R5C1TestRange (including both the cell reference and the range
name).

I believe this is an error rather than a deliberate change as
attempting to recreate this ole link by passing this string to
MkParseDisplayName results in excel returning a syntax error. Hand-
editing the display name string back to the original format (Book1.xls!
Sheet1!TestRange) works as expected.

The bug can be recreated using Excel 2003 and Word 2003 as follows:

1) Create a new excel spreadsheet, with and type a number into a
cell.
2) Create a named range for the cell.
3) Copy the cell to the clipboard
4) Create a new word document and select Edit - Paste Special
5) Choose 'Paste Link' and choose any data format you like (eg.
Unformatted Unicode Text) and press OK

Get an error: "Word cannot obtain the data for the Excel.Sheet.8
link". As far as I can tell there is no way to get more error detail
from word. But if you repeat the above steps but without the named
range everything works correctly. Similarly, once you have a working
link in word if you press Alt+F9 to view field codes and edit the
field code to use the named range then it also works.

Can anyone here confirm my findings? If not, is there somewhere more
appropriate that I should have posted this?

Regards,

Malcolm Stockham

 
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
link to another document of Excel 2003 eva cheng Excel Discussion (Misc queries) 3 November 28th 09 05:15 PM
Issue link Excel 2003 Abast Excel Discussion (Misc queries) 1 September 18th 08 09:46 AM
Link Excel 2003 named range to Access 2003 Table [email protected] Excel Programming 1 January 13th 07 06:40 AM
getting to the web link Excel 2003 Neil Jarman Excel Programming 0 July 7th 05 11:17 AM
What statements introduced in what XL version? Rolando Excel Programming 1 November 13th 04 01:48 PM


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