Dear All,
I am using VBA form with combobox list to select and display slides which are containing that particular list item.
For example, one of the list item in combox is "pump". If user selects "pump" from the drop down list and execute the macro, then all the slides with word "pump" are copied and displayed.
Issue is, in the slides the word "pump" can be written as "water" or booster". This means I have to search not only "pump" but also "water" and "Booster" if user has selected "pump" from the dropdown list of combo box. I am using following:
Array defined for drop box:
UserForm2.AName1.List = Array("*", "Pump", "Robots", "Textile", "Washing")
Code for searching slides:
If UCase(PowerPoint.Application.Presentations("800.pptx").Slides(NRow1).Shapes(3).TextFrame.TextRange.Text) Like "" & (VAName) & "" And UCase(PowerPoint.Application.Presentations("800.pptx").Slides(NRow1).Shapes(8).TextFrame.TextRange.Text) Like "" & UCase(VCompName) & "" Then
PowerPoint.Application.Presentations("C:\OEM\SST\800.pptx").Slides(NRow1).Copy 'copying slides with word "pumpi" defined in "ANAme"
'pres2.Slides.Paste pres2.Slides.Count + 1
With pres1.Slides.Paste
.ColorScheme = PowerPoint.Application.Presentations("C:\OEM\SST\800.pptx").Slides(NRow1).ColorScheme
' .Design = PowerPoint.Application.Presentations("C:\OEM\SST\800.pptx").Slides(NRow1).Design
End With
I am using VBA form with combobox list to select and display slides which are containing that particular list item.
For example, one of the list item in combox is "pump". If user selects "pump" from the drop down list and execute the macro, then all the slides with word "pump" are copied and displayed.
Issue is, in the slides the word "pump" can be written as "water" or booster". This means I have to search not only "pump" but also "water" and "Booster" if user has selected "pump" from the dropdown list of combo box. I am using following:
Array defined for drop box:
UserForm2.AName1.List = Array("*", "Pump", "Robots", "Textile", "Washing")
Code for searching slides:
If UCase(PowerPoint.Application.Presentations("800.pptx").Slides(NRow1).Shapes(3).TextFrame.TextRange.Text) Like "" & (VAName) & "" And UCase(PowerPoint.Application.Presentations("800.pptx").Slides(NRow1).Shapes(8).TextFrame.TextRange.Text) Like "" & UCase(VCompName) & "" Then
PowerPoint.Application.Presentations("C:\OEM\SST\800.pptx").Slides(NRow1).Copy 'copying slides with word "pumpi" defined in "ANAme"
'pres2.Slides.Paste pres2.Slides.Count + 1
With pres1.Slides.Paste
.ColorScheme = PowerPoint.Application.Presentations("C:\OEM\SST\800.pptx").Slides(NRow1).ColorScheme
' .Design = PowerPoint.Application.Presentations("C:\OEM\SST\800.pptx").Slides(NRow1).Design
End With