Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Aligning text in a text frame

Hi,

I need the vba code that will center align some text in a
text box for me - at the minute I have :

with oPPTShape
.TextFrame.HorizontalAlignment =xlHAlignCenter

And it doesn't work - any ideas please?

Many thanks
KDUT
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Aligning text in a text frame

Using either

..TextFrame.HorizontalAlignment = xlHAlignCenter

or

..TextFrame.HorizontalAlignment = xlCenter

worked for me. But I'm curious about where do you have this code ? (just
because of the name of that variable, I would assume it's in or from
PowerPoint ?)

--
Regards

Juan Pablo González

"KDUT" wrote in message
...
Hi,

I need the vba code that will center align some text in a
text box for me - at the minute I have :

with oPPTShape
.TextFrame.HorizontalAlignment =xlHAlignCenter

And it doesn't work - any ideas please?

Many thanks
KDUT



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on aligning a cell itself, not the text Susan Excel Discussion (Misc queries) 4 September 24th 08 02:32 PM
aligning text A Excel Worksheet Functions 4 August 22nd 07 03:25 PM
Aligning text in a text box Gary H Excel Discussion (Misc queries) 1 April 27th 06 05:21 PM
Aligning text Louise Excel Discussion (Misc queries) 1 March 16th 05 11:49 AM
aligning entry in text box Candee[_14_] Excel Programming 2 December 16th 03 05:03 PM


All times are GMT +1. The time now is 10:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"