Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8239957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:19:26+00:00 2026-06-07T20:19:26+00:00

I am getting error message with the following code: Dim objPPT As PowerPoint.Application Dim

  • 0

I am getting error message with the following code:

Dim objPPT As PowerPoint.Application
Dim objPres As PowerPoint.Presentation

'Opening blank presentation
Set objPPT = WScript.CreateObject("PowerPoint.Application")
objPPT.visible = 1
Set objPres = objPPT.presentations.Add
objPres.Slides.Add (1, PowerPoint.PpSlideLayout.ppLayoutBlank)

This Script stops execution prompting error message as Line 1 Char 12 Expected End of statement

I am new to vbscript, Please help if I am making some mistake.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T20:19:28+00:00Added an answer on June 7, 2026 at 8:19 pm

    To use vbscript, you must know syntax of vbscript. Below is example code to Add a Slide to PPT (PPT Template used here)

    ' Add a Slide to a Microsoft PowerPoint Presentation
     Const ppLayoutText = 2
    
     Set objPPT = CreateObject("PowerPoint.Application")
     objPPT.Visible = True
    
     Set objPresentation = objPPT.Presentations.Add
    
     objPresentation.ApplyTemplate _
     ("C:\Program Files\Microsoft Office\Templates\1033\ProjectStatusReport.potx")
    
     Set objSlide = objPresentation.Slides.Add _
     (1, ppLayoutText)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting the error message when running the following code from a C# console
Getting the following error message from https://mws.amazonservices.com/ : <Type>Sender</Type> <Code>SignatureDoesNotMatch</Code> − <Message> The request
I'm getting an error message: unimplemented or unreasonable conversion requested using the following code:
I have the following VBA code and I am getting the error message stated
Can anyone tell me why am i getting error message java.lang.NullPointerException in following code??
When i use the following code i am getting the error message that says
Am getting this error message for the following code, but it doesn't make sense
Am getting following error message on calling WCF service: The formatter threw an exception
I am getting following error message when using Doctrine ORM in Codeigniter. ( !
I am getting the following error message: Method range of object _worksheet failed when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.