LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default Combination of left and right justification in a cell?

Is there a way to combine two cells in to a third cell such that the first
cell's value is left justified and the 2nd cell's value is right justified.
Like a left-tab and a right-tab would do in word.

A1 = "Coffee" {which is left justified in the cell}
B1 = "1010" {which is right Justified in the cell}
C1 = "Coffee 1010" {which does not
have the physical spaces added, this should be controlled by auto-fit in the
cell based on the data in the entire column-C} Of course I could use fixed
font and always make the cell have 50 characters for example... but I want
this to work with proportional fonts.

Something like... =LeftJust(A1)&RightJust(B1) -or-
=A1&RTabChar&B1

Maybe a VBA function that plops the text into a cell and autofits then
calculates the width then iterates thought adding a space and recalculating
the width until the needed width is reached. This method still has problems
because proportional fonts spacing will not come out exact across multiple
strings of text.

Verbose - I know but there has to be a better way. (I know this square peg
WILL fit in that round hole)

--
Regards,
John
 
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
JUSTIFICATION GARY Excel Discussion (Misc queries) 1 September 27th 08 05:01 AM
justification Treva B Excel Worksheet Functions 2 May 10th 07 01:47 PM
column justification Bob Excel Discussion (Misc queries) 3 August 25th 06 01:36 PM
Change justification in right Excel header box to left justify. sdiederick Excel Discussion (Misc queries) 0 May 9th 06 10:16 PM
MsgBox Justification Bill Oertell[_2_] Excel Programming 5 March 6th 04 04:15 AM


All times are GMT +1. The time now is 10:41 PM.

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"