Solution to Error: Cant get the slide title from an Excel sheet using VBA?

Cant get the slide title from an Excel sheet using VBA?

Hi,
I have a macro, that copy some data and put them in slides in powerpoint, this macro works fine in Excel 97,2000,2010.
But it doesnt work in Excel 2007.
it stop here, the thing that confuse me, I have a previous excel with the same code to copy sheets to a powerpoint slide and it work fine in Excel 2007, except this sheet.
oppt.ActiveWindow.View.GotoSlide Index:=pgindex
    oppt.ActiveWindow.ViewType = ppViewSlide
    pptslide.Shapes.Paste
    oppt.ActiveWindow.Selection.SlideRange.Shapes("Picture 3").Select
   
 oppt.ActiveWindow.Selection.SlideRange.Shapes("Picture 3").Select
    With oppt.ActiveWindow.Selection.ShapeRange
        .IncrementTop -0
        .ScaleHeight 0.61, msoFalse, msoScaleFromTopLeft
    End With
   
   oppt.ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Characters(Start:=1, Length:=0).Select
 
This is a part of the code but it stop there, I get to preview the slides, but with no title?
 
Regards,
Qasem Salameh

Keys to the Problem Cant get the slide title from an Excel sheet using VBA?

Download SmartPCFixer for Free Now

Qasem,
Try changing to the line in bold below:
 
' Create slide title
 '
oppt.ActiveWindow.Selection.SlideRange.Layout = ppLayoutTitleOnly
    
oppt.ActiveWindow.Selection.SlideRange.Shapes.Title.Select
 
Does that work ok for you?
_______________________
Regards, Tom

Use the System File Checker tool to repair corrupted or missing system files:

  1. Click Start.
  2. Type cmd, and then press CTRL+SHIFT+ENTER to open the elevated command prompt (I.e. Command prompt with administrative rights).
  3. The User Account Control window should appear, be sure that the action it exhibits is correct, and then press the Continue button.
  4. Type or copy paste the below command line into it without quotes:
  5. "Sfc /scannow"

Recommended Method to Fix the Problem: Cant get the slide title from an Excel sheet using VBA?:

How to Fix Cant get the slide title from an Excel sheet using VBA? with SmartPCFixer?

1. Click the button to download SmartPCFixer . Install it on your system.  Open it, and it will perform a scan for your system. The errors will be shown in the list.

2. After the scan is done, you can see the errors and problems which need to be repaired.

3. The Fixing part is finished, the speed of your computer will be much higher than before and the errors have been fixed.


Related: How Can You Update & Download Toshiba Satellite 5105-S501 Intel PRO 10/100 Driver v.8.0.43.0,How to Update & Download Toshiba Satellite C655D-S5139 BookPlace v.2.2.7530 driver,Method to Update & Download Toshiba Satellite L655-S5073 Realtek Wireless LAN Driver v.2.00.0011,Method to Update & Download Toshiba Satellite L840-ST2N01 Sleep Utility v.1.4.0022.000104 driver,Best Way to Update & Download Toshiba Satellite Pro S300-EZ2502 Extended Tiles for Windows Mobility Center v.1.01 driver,Best Way to Download NVidia GeForce 6100 VGA Driver v.304.51 Certified,How Can You Update & Download NVidia GeForce 9300/nForce 730i VGA Driver v.310.19 Certified,Method to Download NVidia GeForce GT 330M Driver v.340.65,How Can I Update & Download NVidia GeForce GTX 590 Driver v.280.26 WHQL,Method to Download NVidia Tesla C2050 Driver v.319.17,Way to Download RealTek RTL8100C(L) Driver v.5.01,Way to Download RealTek RTL8100E Drivers v.694,Way to Update & Download RealTek RTL8101L Auto Installation Program v.6.110 driver,Method to Update & Download RealTek RTL8111G PXE and RPL ROM code v.2.58 driver,How to Update & Download RealTek RTL8411B(N) Driver v.10.003,Best Way to Update & Download ASUS A53SV nVidia Graphics Driver v.8.17.12.6686,Method to Herunterladen ASUS K75VJ Intel Rapid Storage Technology Treiber v.11.6.0.1030,How Can You Update & Download ASUS CG8580 Intel Chipset Driver v.9.3.0.1019,Method to Update & Download ASUS K41VD Intel INF Update Driver v.9.1.1.1015,Way to Update & Download ASUS Pro70T NB Probe v.3.0.0026 driver,Can't Download PP Templates Automatically To Windows 7 W/IE 8,Can't Change Drive Letter - Vista,Can't Change Homegroup Sharing Permission,Can't Connect XP Shared Printer To Win7 Except As A Local Printer.__,Can You Connect The LAN Adapter For Wii On Your Windows 7 Laptop?
Read More: Troubleshooting:cant burn CD in Windows XP mode Error,Troubleshooting:Chart\/Range in specific sheet in XLS to specific slide in PPT Error,How to Fix - cant run whale client, seems that active x cant load?,How to Fix Problem - Change the default ie8 search provider google to google.co.nz?,Solution to Error: Change of Font.,Can't access c drive to open programs.,Can you use just one hard drive to store a backup disk image and restore for multiple computers?,can not install Mcafee due to Java script error,,Can Word's track changes comments print in the outside border?,cannot install old software program because computer missing indeo codec driver
Comments