Skip to content
Fr Simon's Secondhand Bookstall

Fr Simon's Secondhand Bookstall

Selling my books to make space (for more books)

  • Home
  • Bookstall
    • Books and other Stuff
    • Basket
    • Checkout
  • Refund and Returns Policy
  • Other things
    • Dance
    • Technology & Geekery
      • Fr Simon’s Unofficial Remote Controller
      • Easyworship Remote Control
      • get_iPlayer GUI Version 2
      • Electric Ordo (Calendar) 2023
      • jWorship
      • Development and Testing
      • NAS Drives Mapper
      • Development Privacy Policy
    • Liturgy & Worship
      • Funeral Materials
      • Common Worship RTF Files
      • Spiritual Materials
    • Blog
  • My Publications
    • MA Dissertation: Sacraments in Digital Space
  • About
  • Toggle search form

Powerpoint VBA to Insert Textbox and Create Outlined Text

Posted on December 23, 2019 By spr No Comments on Powerpoint VBA to Insert Textbox and Create Outlined Text
Sub SPRtextbox()
      Dim mySlide As PowerPoint.Slide
      Dim strMsg As String
      Dim myTextbox As PowerPoint.Shape

      strMsg = InputBox("Enter Text", "SPR Macros")
      Set mySlide = ActivePresentation.Slides(ActiveWindow.View.Slide.SlideNumber)
      Set myTextbox = mySlide.Shapes.AddTextbox(msoTextOrientationHorizontal, _     Left:=0, Top:=10, Width:=200, Height:=50) 
      myTextbox.Fill.BackColor.RGB = RGB(127, 127, 127) 'grey 
      myTextbox.Fill.Transparency = 0.3 'translucent 
      myTextbox.Height = 150 
      myTextbox.Width = 300 
      myTextbox.TextFrame2.AutoSize = msoAutoSizeTextToFitShape 'https://www.pcreview.co.uk/threads/how-to-vba-code-shrink-text-on-overflow.3537036/#post-12183384 
With myTextbox.TextFrame.TextRange
     .Text = strMsg     
     With .Font         
         .Size = 32
         .Name = "Impact"
     End With 
End With 
With myTextbox.TextFrame2.TextRange.Font
     .Line.Visible = True
     .Line.ForeColor.RGB = RGB(0, 0, 0)
     .Line.Weight = 1 
End With

End Sub

parish

Post navigation

Previous Post: Supadance Finals, Blackpool 2019
Next Post: Christmas Is Really For The Children – Poem by Steve Turner

Related Posts

Got something right at least… parish
Sermon: Ordinary 29, Year B Mark 10:35-45 parish
"If you want" – S. John of the Cross parish
Legillium Mass Book – the toolkit you will need to say the Mass (beautifully) mission
Sermon: Easter 5, Year C – Love parish
Scripture nails the lie of Complimentarianism parish

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Copyright © 2023 Fr Simon's Secondhand Bookstall.

Powered by PressBook Grid Dark theme

FREE SHIPPING | CHEAPER THAN ABEBOOKS Dismiss