Solved

Placing Title Textbox

Posted on 2006-11-09
3
174 Views
Last Modified: 2010-04-30
Driving me mad...

I'm using this code to place a new title in a slide. Can not work out how to specify where it is placed or its size though...???

With PPSlide.Shapes
        If .HasTitle Then
          .Title.Delete
        End If
        With .AddTitle.TextFrame.TextRange
          .Text = Cells(Row + 1, Column + 1).Value
          .Font.Color.RGB = RGB(Red:=51, Green:=51, Blue:=153)
        End With
      End With
0
Comment
Question by:UINVDJM
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
mvidas earned 500 total points
ID: 17906619
Hi Darren,

(untested aside from checking properties)
What about something like

      With PPSlide.Shapes
        If .HasTitle Then
          .Title.Delete
        End If
        With .AddTitle
          .Left = 10
          .Top = 10
          .Height = 20
          .Width = 20
          With .TextFrame.TextRange
            .Text = Cells(Row + 1, Column + 1).value
            .Font.Color.RGB = RGB(Red:=51, Green:=51, Blue:=153)
          End With
      End With

I noticed the TextFrame also has an .autosize method

Matt
0
 
LVL 11

Author Comment

by:UINVDJM
ID: 17906748
Ah, I was trying to add .Left etc in the wrong place.

Thank you again!
0
 
LVL 35

Expert Comment

by:mvidas
ID: 17906785
Glad to help! The .TextFrame has .marginXXXX properties as well to make it a little nicer, and the .textrange has .boundXXXX properties as well, but that last one doesn't seem to do much more than the .margins

Again, let me know if you need anything else (and adding it to this Q or one of the others would be fine with me)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 10 start screen issues 9 51
using Access 8 59
Microsoft Access combo box help 2 38
VBA: Personal Macro Retain/Highlight/Remove values in a selected column 4 24
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now