Multiple search using one item in list of userform

haplc

Board Regular
Joined
May 27, 2004
Messages
71
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
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,215,327
Messages
6,124,294
Members
449,149
Latest member
mwdbActuary

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