|
-
Jul 19th, 2006, 10:32 AM
#1
Thread Starter
Junior Member
<RESOLVED> Justify text in cell
Hi all,
What is the command to align text in a cell but not to left or right, I mean to distribute the text and making the cell height bigger.
Thanks in advance,
Y.
Last edited by yorch; Jul 19th, 2006 at 05:51 PM.
-
Jul 19th, 2006, 12:52 PM
#2
Re: Justify text in cell
Columns("A:A").ColumnWidth = [NUMBER.. ex: 25]
Range("A1").HorizontalAlignment = xlCenter
there is also
xlFill and xlJustify, but they didnt seem to do anything?
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jul 19th, 2006, 02:59 PM
#3
Fanatic Member
Re: Justify text in cell
The best way to figure out things like this is to use the macro recorder - start the recorder, perform the tasks you want, stop the recorder, then look at the resulting code.
-
Jul 19th, 2006, 03:53 PM
#4
Re: Justify text in cell
VBAHack!! dont tell them that! c'mon! it makes us seem so smart that we can figure stuff out soooo easily lol
Macros are your friend
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jul 19th, 2006, 03:56 PM
#5
Re: Justify text in cell
Doh!
The secret is out ;-)
Declan
Don't forget to mark your Thread as resolved.
Take a moment to rate posts that you think are helpful 
-
Jul 19th, 2006, 05:50 PM
#6
Thread Starter
Junior Member
<RESOLVED> Justify text in cell
Thanks all!, actually a friend told me about the macro recorder (something unknown for me) and there I found the exactly answer.
VB Code:
range("a1:c4").[B]wraptext[/B] = [B]true[/B]
jejeje, secret revealed. May be you will see me more often answering questions
Y.
-
Jul 19th, 2006, 07:05 PM
#7
Fanatic Member
Re: <RESOLVED> Justify text in cell
Oops. I guess I'll be forever ostracized.....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|