Vertical Alignment of text beside image in vbs

Posted on 2012-09-12
Last Modified: 2012-10-13
If strFname = "Cody" then
objSelection.TypeText Chr(11)
objSelection.TypeText Space(4)
set objShape = objSelection.InlineShapes.AddPicture(strVetlogo)
objselection.Font.Bold = True
objSelection.TypeText "Service Disabled Veteran-Owned Small Business"

So this is is the area that I need help in. This works just fine but the text "Service Disabled Veteran-Owned Small Business" ends up right next to it but on the bottom.



!$!$$$$$ "Service Disabled Veteran-Owned Small Business"

Like that. However a manager wants it to look like this:


!@$%!$$ "Service Disabled Veteran-Owned Small Business"


Center of the picture. How in the hell do I manage this? I'm not really a scripter I just sorta try stuff and research but I hit a bit of a wall here. Thanks for any help.
Question by:sagetechit
    1 Comment
    LVL 35

    Accepted Solution

    I'm not sure if it's possible just like that. You may need a Word formatting expert rather than scripting. Once you know how to do it 'manually' it should be possible to record a macro and take the scripting from that.

    Otherwise, have you considered using a text box or table? It's certainly possible to vertically center text in those.
    examples capture

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    In case Office 2010 has not been deployed in your environment, this article may be quite useful. In our office, we wanted a way to deploy Microsoft Office Professional Plus 2010 through an automated batch file via logon script. This article is docum…
    My experience with Windows 10 over a one year period and suggestions for smooth operation
    The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
    Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

    734 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

    23 Experts available now in Live!

    Get 1:1 Help Now