Relative vs Absolute references

T

TB

In linking Excel data cells into Powerpoint, do they come over as
relative or absolute references and how do you change from one to the
other?
 
S

Steve Rindsberg

In linking Excel data cells into Powerpoint, do they come over as
relative or absolute references and how do you change from one to the
other?

My first question would be *can* you link (as opposed to embed) Excel data into
Mac PPT in the first place. As near as I can tell, you can't.

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
S

Steve Rindsberg

Hi Steve,

Would you go for this?

In PowerPoint...
Insert > Object > Microsoft Excel Workbook
Switch to the source workbook
Edit > Copy
Switch to the workbook in the Presentation
Edit > Paste Special > Paste Link

Jim,

Unless I missed something, that creates OLE Embedded, not Linked objects.

Tellyawhat ... on an example produced at your end, select the shape in question
then run this:

Sub LinkedOrEmbedded()

With ActiveWindow.Selection.ShapeRange(1)
Select Case .Type
Case is = 7
Msgbox "I'm an OLE Embedded object"
Case is = 10
Msgbox "I'm an OLE Linked object"
Case is = 11
Msgbox "I'm a linked picture"
Case is = 16
Msgbox "I'm a media (sound or movie) object"
Case else
Msgbox "You're messing with my head. Behave."
End Select
End With
End Sub



--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
S

Steve Rindsberg

Hi Steve,

This thread refers to linking Excel data cells, not pictures.

Right. And the macro I posted will tell you whether the Excel content is
linked or embedded. I threw in the linked picture thing for free. ;-)

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
J

Jim Gordon MVP

Hi,

The code reports that the Excel object in PowerPoint is an embedded OLE
object (Case 7).

But the code does not answer the question about the links between the
source Excel workbook's data range and the data range that's in the
Excel workbook embedded in the PowerPoint presentation. For that we need
a macro in Excel.

To test for the data range link I ran the following Macro in Excel:

Sub TestForObjects()
dim i as integer
Set newSheet = Worksheets.Add
i = 2
newSheet.Range("A1").Value = "Name"
newSheet.Range("B1").Value = "Link Type"
For Each obj In Worksheets("Sheet1").OLEObjects
newSheet.Cells(i, 1).Value = obj.Name
If obj.OLEType = xlOLELink Then
newSheet.Cells(i, 2) = "Linked"
Else
newSheet.Cells(i, 2) = "Embedded"
End If
i = i + 1
Next
End Sub

The above code reports that there are no OLE objects on Sheet 1.

However, the following code does find the links on the Sheet 1:

sub FindLinks()
dim aLinks
aLinks = ActiveWorkbook.LinkSources
If Not IsEmpty(aLinks) Then
For i = 1 To UBound(aLinks)
MsgBox "Link " & i & ":" & Chr(13) & aLinks(i)
Next i
End If
End sub

FindLinks correctly reports that there is one link called "Link 1" and
correctly displays the file path to the source Excel document.

So my conclusion is that it is possible to link data between an Excel
document and an Excel workbook that's embedded in a PowerPoint presentation.

-Jim


--
Jim Gordon
Mac MVP
MVP FAQ
<http://mvp.support.microsoft.com/default.aspx?scid=fh;EN-US;mvpfaqs>
 
S

Steve Rindsberg

Snippage prior to a quick cut to the chase>
So my conclusion is that it is possible to link data between an Excel
document and an Excel workbook that's embedded in a PowerPoint presentation.

Which sorta comes around to my original theory: you can't link anything into
PowerPoint/Mac.

The nice thing about links is that if the source data changes, the linked data
in PPT (by default, you can change this) automatically updates too.

Embedded objects with links to other data get you part way there, it's true,
but it requires you to activate the embedded object, which then wakes up and
goes "Hey, I got links!"

We run into this all the time on the PC. People link data from Excel into the
datasheet in MSGraph thinking that the graph will automatically update when the
data changes in Excel.

It won't. Not until you doubleclick the MSGraph chart in PPT to wake it up.

Bummer.

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
B

Bobbie Oese

Steve Rindsberg said:
Which sorta comes around to my original theory: you can't link anything into
PowerPoint/Mac.

The nice thing about links is that if the source data changes, the linked data
in PPT (by default, you can change this) automatically updates too.

Embedded objects with links to other data get you part way there, it's true,
but it requires you to activate the embedded object, which then wakes up and
goes "Hey, I got links!"

We run into this all the time on the PC. People link data from Excel into the
datasheet in MSGraph thinking that the graph will automatically update when the
data changes in Excel.

It won't. Not until you doubleclick the MSGraph chart in PPT to wake it up.

Bummer.

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
J

Jim Gordon MVP

Hi Steve,

You're absolutely right. I tried several ways of getting linked data
into PPT, but nothing would let me link directly. Only via an embedded
object could I link to a range of cells.

Of course you could do the VBA thing we figured out in a different
thread to have the workbook data update automatically, but that is
awkward for most users.

-Jim

--
Jim Gordon
Mac MVP
MVP FAQ
<http://mvp.support.microsoft.com/default.aspx?scid=fh;EN-US;mvpfaqs>
 
J

Jim Gordon MVP

Hi

In Excel 2004 you can use Edit > Links and click the "Change Source"
button. That is probably a new feature in Excel 2004.

-Jim
 
S

Steve Rindsberg

Hi Steve,

You're absolutely right. I tried several ways of getting linked data
into PPT, but nothing would let me link directly. Only via an embedded
object could I link to a range of cells.

Crazy-making, isn't it? It's such a useful feature, especially since this
particular type of link isn't as fragile as the usual media/image file ones.
Of course you could do the VBA thing we figured out in a different
thread to have the workbook data update automatically, but that is
awkward for most users.

Sigh. Yeah.

Wasn't there something called Publish/Subscribe built into MacOS that did
something like linking?


--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
S

Steve Rindsberg

I have a vaguely related question. I am really hoping you guys are live or
nearly so,

It's been a long, weird day and I'd describe it more as "alive, but barely so" ;-)

I don't have a good answer for you, but I'd bet the folks in the Excel newsgroups on
this same msnews.microsoft.com server will (but I'd head for the Windows side;
you've landed among Mac users.)
I link eight separate Excel workbooks (orig created in Excel 97) to a
single Consolidated workbook (also E '97). I have worked with these in
Excel 02 on XP operating system. This could be the problem, but when I
switch back over to '97, the same thing is occurring.

Suddenly, several of my relative links have turned absolute. One set of
cells, pointing to one particular Workbook insists on converting whatever I
type into an absolute L in Windows/TEMP file. It for the most part preserves
the cell reference, however, on one it changed them all by 2, so that if it
pointed to tab and cell 02!D5 it suddenly converted itself to 03!D7. It
converted another string of links from relative to absolute but the directory
was correct in where I keep these files, not the TEMP file. No tab or cell
number changes in this situation. The remaining 6 Workbooks remained
relative.

I have tried deleting and "re-saving" files that are linked up, but to no
avail.

Last other problem, is that when I tried to update in Excel 02, it tells me
that so many files are missing, even ones whose formulas didn't switch from
relative to absolute.

THANK YOU in advance for any shred of knowledge in this department.,
preferrably the button to make this all right!!

-Bobbie

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
J

Jim Gordon MVP

Yup!

"OnData Property

An OnData handler runs when data arrives from an application other than
Microsoft Excel. You can use the OnData property of the Worksheet,
Application, Link, or Subscriber object to associate a procedure with
the arrival of data linked to one of these objects through dynamic data
exchange (DDE) or through object linking and embedding. (In Microsoft
Excel for the Macintosh running under System 7, data can also arrive
through the Publish and Subscribe feature.)"
<http://support.microsoft.com/default.aspx?scid=/support/Excel/Content/Onevent/Onevent.asp>

-Jim
 
J

Jim Gordon MVP

Hi Bobbie,

I'm with Steve on this. You're in a Macintosh PowerPoint newsgroup and
this has little to do with PowerPoint.

Start a new thread in an appropriate Excel newsgroup so that the folks
there can offer suggestions.

-Jim
 
S

Steve Rindsberg

Yup!

"OnData Property

An OnData handler runs when data arrives from an application other than
Microsoft Excel. You can use the OnData property of the Worksheet,
Application, Link, or Subscriber object to associate a procedure with
the arrival of data linked to one of these objects through dynamic data
exchange (DDE) or through object linking and embedding. (In Microsoft
Excel for the Macintosh running under System 7, data can also arrive
through the Publish and Subscribe feature.)"
<http://support.microsoft.com/default.aspx?scid=/support/Excel/Content/Onevent/Onevent.asp>

Starts to sound vaguely linkish, doesn't it? OTOH, it'd be something of a nuisance to set up
a System 7 bootup just to get at it. I don't see any evidence of P&S in Excel 2001 in
compatibility mode/MacOS9 ... I wonder where it was last seen?


--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top