
Paste Linking Ranges From Excel
[This followup was posted to microsoft.public.powerpoint with an email
copy to Kristin.
Please use the newsgroup for further discussion.]
The only way I could figure out to use a named XL range with a linked
object in PP was somewhat complicated. It requires (a) a sheet level
name in XL, (b) using PP VBE to identify the linked object in PP and
change its FullSourceName attribute.
It is possible -- though I don't know for sure -- that PPTools (a free
add-in from www.rdpslides.com) will give you direct access to the
FullSourceName property of the inserted object without resorting to the
PP Visual Basic Editor.
The hard way...
Create a named range in XL. This has to be a sheet level name, say,
Sheet1!aRng =OFFSET(Sheet1!$A$2,0,0,COUNTA(Sheet1!$A:$A),1)
Save the file. Call it linktest.xls.
Now, select the range and paste link into PP. Assume this is on the
first slide and that this is the third shape on the slide (the first two
being two placeholders).
Next, go to PP VBE.
In the immediate window (View | Immediate Window), enter
?activepresentation.Slides(1).Shapes(3).linkformat.SourceFullName
You should see something like E:\TEMP\PPT\LINKTEST.XLS!Sheet1!R2C1:R11C1
[This verifies that we have identified the correct shape]
In the immediate window, enter
activepresentation.Slides(1).Shapes(3).linkformat.SourceFullName="E:
\TEMP\PPT\LINKTEST.XLS!Sheet1!arng"
[The above 2 lines should be on a single line. The text wraps in the NG
post]
Verify that the name is changed by reentering
?activepresentation.Slides(1).Shapes(3).linkformat.SourceFullName
This time you should see E:\TEMP\PPT\LINKTEST.XLS!Sheet1!arng
While the above was tested with XL2002 and PP2002, I remember doing this
with Office 2000.
--
Regards,
Tushar Mehta
www.tushar-mehta.com
--
Quote:
> Hi -
> Here's what I am trying to do. I have copied cells A1:F7
> from Excel and then paste linked them into PowerPoint. If
> I then insert two rows above row one in Excel, I can still
> see what is in cells A1:F7 in my PowerPoint file even
> though the Excel data that I now want to see is in cells
> A1:F9 (the original 7 rows plus the two newly inserted
> rows).
> I was trying to figure out if there was a way to paste
> link a named range from Excel to PowerPoint so that I am
> seeing all of the data.
> Does anyone have any ideas?
> Thanks,
> Kristin