Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Powerpoint 1

Status
Not open for further replies.

bbyboo1323

Programmer
Apr 10, 2003
10
US
I need to prompt the user with an inputbox to enter information for a slide.
ex:
prompt to enter a tite for a slide (placing it in the first shape) then to inter source of their presentation (placing that in the 2nd shape), then add code to prompt the user for the # of slides they want to add (using a for..Next loop), then the user inputs their name to be placed on the final slide.
Could someone Please help with this and my access question if possible. I am really new to VB and I am not getting it as quickly as I should.
 
Hi,
Code:
    Dim answer As Variant
    answer = InputBox("Enter Slide Title")
    If answer = "" Then
        'what to do if canceled
    Else
        'what to do with answer
    End If


Skip,
Skip@TheOfficeExperts.com
 
That works! thanks..now when i insert the data that was entered i have to format it..where would i insert the format statement?
 
If you want to format the Excel Object then...
Code:
With pptxlSheet.pptxlRange
   With .Font
      .Name = "Arial"
      .Size = 12
   End With
   .Interior.ColorIndex = 22
'etc
End with

Skip,
Skip@TheOfficeExperts.com
 
ok forget the date..i got that

i need to prompt for a number of slides to add.
i have the code for the input box ,etc but how would i write how many slides in add
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top