link excel cell to powerpoint textbox

Rune PS

New Member
Joined
Oct 9, 2018
Messages
8
Im looking for a way to link a excel cell to a powerpoint textbox, such that if the cell changes, the text in powerpoint will aswell.

Ideally, something similar to the way you can link excel cells to word text. That works by copying the excel cell you want, and using "paste special" and pasting a linked unformatted text. Is there anyway to do this similarly in powerpoint?

worth noting, i know that you can copy excel ranges and input them as linked pictures - that is not what i am looking for, as i need to be able to write around it in powerpoint. Does anyone know if this is possible?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
o When the slide show reaches the desired slide, the text box is updated with the cell value.
o Before using it, run the Init routine.


Code:
' PowerPoint module
Dim cPPTObject As New Class1
Sub Init()
Set cPPTObject.PPTEvent = Application
End Sub


Code:
Public WithEvents PPTEvent As Application
' class module named Class1
Private Sub PPTEvent_SlideShowNextSlide(ByVal Wn As SlideShowWindow)
Dim si%, xlap As Excel.Application, wb As Workbook, sh As Shape
si = Wn.View.Slide.SlideIndex
If si = 4 Then                                  ' fourth slide
    Set xlap = GetObject(, "Excel.Application") ' assumes Excel is running
    xlap.Visible = 1
    Set wb = xlap.Workbooks(1)
    Set sh = ActivePresentation.Slides(si).Shapes("textbox 2")
    sh.TextFrame.TextRange.Text = wb.Worksheets(1).[d15]
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top