[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Vertical Alignment of text beside image in vbs

Posted on 2012-09-12
1
Medium Priority
?
714 Views
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.
0
Comment
Question by:sagetechit
1 Comment
 
LVL 35

Accepted Solution

by:
Robert Schutt earned 2000 total points
ID: 38394055
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
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Microsoft's Excel has many features that most people will never need nor take advantage of.  Conditional formatting is one feature that you may find a necessity once you start using it.
Cancel future meetings from user mailboxes in Office 365 using Remove-CalendarEvents
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

873 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