PC Review


Reply
Thread Tools Rate Thread

Cell wrapping event, does it exist? How can I calculate cell filli

 
 
=?Utf-8?B?TWlrZQ==?=
Guest
Posts: n/a
 
      7th Nov 2006
I have a peculiar problem I can not seem to solve anyway I tried.

I need to write the values of 2 fields into an Excel 2003 cell separated by
a comma.
For example, “Some text from field1,value of field2”

The value of 2nd field is at the end and absolutely has to be displayed.
The value of 1st field can be truncated but the goal is to display as much
as possible.

The problem is some letters of some fonts can have larger width. For
instance, letter W takes up more space than letter i.
This makes it difficult to just assume the total length of a cell and do
simple truncating.

What are my options? Is there a way to intercept some sort of a cell
wrapping event?

Many thanks in advance,

--Mike



 
Reply With Quote
 
 
 
 
=?Utf-8?B?UlM=?=
Guest
Posts: n/a
 
      8th Nov 2006
Dear Mike,

I use Excel 2000, but this should still be the same: try Ctrl+1
(Format Cells), click on the Alignment tab -> under Text control, check the
"Shrink to fit" box. This should automatically adjust the text to fit
whatever sized cell you have. Hope this helps.

-RS
"Mike" wrote:

> I have a peculiar problem I can not seem to solve anyway I tried.
>
> I need to write the values of 2 fields into an Excel 2003 cell separated by
> a comma.
> For example, “Some text from field1,value of field2”
>
> The value of 2nd field is at the end and absolutely has to be displayed.
> The value of 1st field can be truncated but the goal is to display as much
> as possible.
>
> The problem is some letters of some fonts can have larger width. For
> instance, letter W takes up more space than letter i.
> This makes it difficult to just assume the total length of a cell and do
> simple truncating.
>
> What are my options? Is there a way to intercept some sort of a cell
> wrapping event?
>
> Many thanks in advance,
>
> --Mike
>
>
>

 
Reply With Quote
 
=?Utf-8?B?TWlrZQ==?=
Guest
Posts: n/a
 
      8th Nov 2006
Thank you for taking a look. Unfortunately, I can not change size of fonts.

Anything else I can do?

Many thanks in advbance,

--Mike

"RS" wrote:

> Dear Mike,
>
> I use Excel 2000, but this should still be the same: try Ctrl+1
> (Format Cells), click on the Alignment tab -> under Text control, check the
> "Shrink to fit" box. This should automatically adjust the text to fit
> whatever sized cell you have. Hope this helps.
>
> -RS
> "Mike" wrote:
>
> > I have a peculiar problem I can not seem to solve anyway I tried.
> >
> > I need to write the values of 2 fields into an Excel 2003 cell separated by
> > a comma.
> > For example, “Some text from field1,value of field2”
> >
> > The value of 2nd field is at the end and absolutely has to be displayed.
> > The value of 1st field can be truncated but the goal is to display as much
> > as possible.
> >
> > The problem is some letters of some fonts can have larger width. For
> > instance, letter W takes up more space than letter i.
> > This makes it difficult to just assume the total length of a cell and do
> > simple truncating.
> >
> > What are my options? Is there a way to intercept some sort of a cell
> > wrapping event?
> >
> > Many thanks in advance,
> >
> > --Mike
> >
> >
> >

 
Reply With Quote
 
=?Utf-8?B?UlM=?=
Guest
Posts: n/a
 
      10th Nov 2006
Dear Mike,

Unfortunately, that's all that I know. However, there probably are
other people much more knowledgeable here that might be able to help you.
Good luck.

"Mike" wrote:

> Thank you for taking a look. Unfortunately, I can not change size of fonts.
>
> Anything else I can do?
>
> Many thanks in advbance,
>
> --Mike
>
> "RS" wrote:
>
> > Dear Mike,
> >
> > I use Excel 2000, but this should still be the same: try Ctrl+1
> > (Format Cells), click on the Alignment tab -> under Text control, check the
> > "Shrink to fit" box. This should automatically adjust the text to fit
> > whatever sized cell you have. Hope this helps.
> >
> > -RS
> > "Mike" wrote:
> >
> > > I have a peculiar problem I can not seem to solve anyway I tried.
> > >
> > > I need to write the values of 2 fields into an Excel 2003 cell separated by
> > > a comma.
> > > For example, “Some text from field1,value of field2”
> > >
> > > The value of 2nd field is at the end and absolutely has to be displayed.
> > > The value of 1st field can be truncated but the goal is to display as much
> > > as possible.
> > >
> > > The problem is some letters of some fonts can have larger width. For
> > > instance, letter W takes up more space than letter i.
> > > This makes it difficult to just assume the total length of a cell and do
> > > simple truncating.
> > >
> > > What are my options? Is there a way to intercept some sort of a cell
> > > wrapping event?
> > >
> > > Many thanks in advance,
> > >
> > > --Mike
> > >
> > >
> > >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I have a cell calculate based on a portion of another cell mellen Microsoft Excel Misc 1 20th Oct 2009 05:28 PM
Check cell status on Calculate event: resource issues? Seattle63 Microsoft Excel Programming 2 13th Apr 2009 11:20 PM
How do I make a cell calculate percentages of another cell. =?Utf-8?B?ZnRv?= Microsoft Excel Misc 2 16th Jul 2007 06:10 AM
Can you calculate a cell name? and How to return a value from an adjacent cell? HK Microsoft Excel Worksheet Functions 4 14th Feb 2007 04:49 PM
if cell has date value how to calculate other cell values =?Utf-8?B?RVhDRUwgVVNFUg==?= Microsoft Excel Misc 2 22nd Aug 2006 01:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:00 AM.