new to stack overflow posting, so do guide me along. :)
I am required to create a program to paste certain values from excel to powerpoint and format it.
The VBA code I have written so far is able to produce the Cell Value from Excel to PowerPoint. However, the Font Size does not change in Powerpoint while the Font Colour and Font Type will change. I am unsure why this is so but I have a thought that it could be due to some powerpoint settings or something regarding VBA I am not familiar with.
Please Assist!
Codes are below:
Dim title1 As Excel.range
Dim App As PowerPoint.Application
Dim Ptn As PowerPoint.Presentation
Dim mySlide As PowerPoint.Slide
Dim myShape As PowerPoint.Shape
Set title1 = ThisWorkbook.Sheets("Sheet4").range("C1:C1")
'Set Font Properties
title1.Font.Size = 28
title1.Font.Color = RGB(0, 112, 192)
title1.Font.Name = "Century Gothic"
'Create Slide 1
Set mySlide = Ptn.Slides.Add(1, ppLayoutBlank)
'Copy Title1
title1.Copy
'Paste to PowerPoint and position
mySlide.Shapes.PasteSpecial DataType:=ppPasteDefault
Set myShape = mySlide.Shapes(mySlide.Shapes.Count)
'Set position
myShape.Left = 35
myShape.Top = 200