weird cell behaviour with multiple lines in cell with restricted height

sijpie

Well-known Member
Joined
Nov 1, 2008
Messages
4,241
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I am working on a workbook for someone. The workbook is to schedule people in a duty roster. As the number of names is large, there is a big possibility of two or more people with the same name. That is why I want to store the ID number in the cell with the name.

For clarity on the screen I have opted to separate the name and the ID number by a vbLF (Ascii 10) so they appear as a muliti line in the cell. But then I set the cell height to just show the name, the ID number is then invisible. But in my VBA code I can still extract it.

The strange thing now is that on my PC (and on someone other's PC, just for testing) this works like intended, but on the PC of the person who I am building this for, the names don't show, only the 2nd line, the IDs.

See the two images:
view
view
view


https://drive.google.com/file/d/0BxykuY6uKAJ9TUFwSkVzNl9HNlRmNnZoa2duaWFPNEkyUm9r/view?usp=sharing
https://drive.google.com/file/d/1jwOgANuD1w_ESN_6GMlqQqQujt7-y_9R/view?usp=sharing

view


Anyone encountered this before and knows the cause?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Try amending VERTICAL text alignment setting

Select relevant cells \ right-click \ Format Cells \ Alignment \ ...
set VERTICAL= Top (1st row visible)
OR
set VERTICAL = Bottom (2nd row visible)
 
Last edited:
Upvote 0
Hi Yongle, on my PC that doesn't make much difference, but on the PC concerned it did the trick. Thanks
 
Upvote 0
thanks for the feedback, glad it sorted things for the other user
(y)
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,253
Members
448,556
Latest member
peterhess2002

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top