Results 1 to 7 of 7

AddTextbox Method Powerpoint Set or NotSet

Threaded View

  1. #1
    Registered User
    Join Date
    08-29-2014
    Location
    Berlin, Germany
    MS-Off Ver
    2007
    Posts
    9

    AddTextbox Method Powerpoint Set or NotSet

    Hi everbody

    Im trying to create a textbox using the addtextbox method. my book ("Mastering vba micr. off. 2010") is suggesting the following:

        Dim myTextBox As Shape
        
        With ActivePresentation.Slides(1)
        
        Set myText = .Shapes.AddTextbox(Orientation:=msoTextOrientationHorizontal, Left:=708, Top:=554, Width:=42, Height:=24)
        myTextBox.TextFrame.TextRange.Text = "BLABLA"
        
        End With
    This doesn't work. But when I use the method without setting an object it works.

    Do you have any ideas why?

    note that im using office 2007.

    Thanks for your time and help!

    -Jon
    Last edited by Jonas1503; 09-11-2014 at 11:49 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PowerPoint interop without showing the PowerPoint application window
    By philippjb0 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-21-2013, 06:36 AM
  2. Replies: 13
    Last Post: 01-11-2013, 04:46 PM
  3. Data input in powerpoint to select data in excel and report back to powerpoint
    By daveybright in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2009, 09:54 PM
  4. AddTextBox
    By koticphreak in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-02-2008, 10:41 PM
  5. [SOLVED] parameters AddTextbox
    By piet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2005, 10:05 AM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1