Hi,
I have a macro that build PowerPoint presentation from excel. And workbook that has several tabs and their names as below:
"It would take", "Themes_2", "Themes_1". When I tried to build the slides this is what happened:
"It would take" tab successfully built into .pptx but the rest of the tabs didn't work as I got run-time error 438. can you check my macro below and advise what should I do to fix?
Sub goDOit()
Sheets("It would take").Activate
Call build_it_in_PPTX ------ this worked
Sheets("Themes_2").Activate
Call Sheets("Themes_2").build_it_in_PPTX ----- this didn't work
Sheets("Themes_1").Activate
Call Sheets("Themes_1").build_it_in_PPTX ----- this didn't work
End Sub
Thank you!
I have a macro that build PowerPoint presentation from excel. And workbook that has several tabs and their names as below:
"It would take", "Themes_2", "Themes_1". When I tried to build the slides this is what happened:
"It would take" tab successfully built into .pptx but the rest of the tabs didn't work as I got run-time error 438. can you check my macro below and advise what should I do to fix?
Sub goDOit()
Sheets("It would take").Activate
Call build_it_in_PPTX ------ this worked
Sheets("Themes_2").Activate
Call Sheets("Themes_2").build_it_in_PPTX ----- this didn't work
Sheets("Themes_1").Activate
Call Sheets("Themes_1").build_it_in_PPTX ----- this didn't work
End Sub
Thank you!