Consulting

Results 1 to 3 of 3

Thread: Powerpoint autocomplete text box from user form.

  1. #1
    VBAX Regular
    Joined
    Sep 2011
    Posts
    17
    Location

    Powerpoint autocomplete text box from user form.

    Hello,
    I am creating a user form to automatically enter a candidates name on a certificate from the text I enter into a user form.
    Here is what I have so far, can anyone tell me why it won't work?
    [code]Private Sub btncreate_Click()
    ActivePresentation.Slides.Shapes("Group 81") = txtname.Value
    Unload Me
    End Sub[\code]

    thanks

    Dave

  2. #2
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,093
    Location
    Assuming that shape exists and it can contain text

    [vba]ActivePresentation.Slides(1).Shapes("Group 81").TextFrame.TextRange = txtname.Value[/vba]
    However from the name it's a grouped shape so you might find that the text is added to each member of the group

    You might consider

    [vba]ActivePresentation.Slides(1).Shapes("Group 81").GroupItems(1).TextFrame.TextRange = txtname.Value[/vba]
    Last edited by John Wilson; 09-05-2011 at 08:51 AM.
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

  3. #3
    VBAX Regular
    Joined
    Sep 2011
    Posts
    17
    Location

    [SOLVED]

    Many thanks for your help.

    regards

    Dave

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •