Solved

Excel 2010 - Text not aligning at bottom of cell!

Posted on 2016-11-18
5
27 Views
Last Modified: 2016-11-19
I specified text to align in the bottom of the cell but it's not doing it.
(See graphic).
I chose align bottom (see button) but it's not happening.
How to fix?
err
0
Comment
Question by:brothertruffle880
  • 3
5 Comments
 
LVL 46

Expert Comment

by:Martin Liss
ID: 41893841
Do you possibly have things like line feeds at the end of the text?
0
 
LVL 46

Accepted Solution

by:
Martin Liss earned 500 total points
ID: 41893849
Here's an easy way to tell. Add this macro to a module and run it.
Sub LineFeeds()
Dim rngAddress As Range
Set rngAddress = Application.InputBox(prompt:="Which cell do you want to check?", Type:=8)

If Len(rngAddress.Value) > Len(Replace(rngAddress.Value, vbLf, "")) Then
    MsgBox "Cell contains " & Len(rngAddress.Value) - Len(Replace(rngAddress.Value, vbLf, "")) & " line feeds"
End If

If Len(rngAddress.Value) > Len(Replace(rngAddress.Value, vbCrLf, "")) Then
    MsgBox "Cell contains " & Len(rngAddress.Value) - Len(Replace(rngAddress.Value, vbCrLf, "")) & " carriage return line feeds"
End If

End Sub

Open in new window

0
 
LVL 6

Expert Comment

by:DPatel
ID: 41893973
Adjust the cell height and width to fit the contents. They try.

D Patel
0
 

Author Comment

by:brothertruffle880
ID: 41894417
Thanks Martin!  Perfect.
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 41894425
You're welcome and I'm glad I was able to help.

If you expand the “Full Biography” section of my profile you'll find links to some articles I've written that may interest you.

Marty - Microsoft MVP 2009 to 2016
              Experts Exchange MVE 2015
              Experts Exchange Top Expert Visual Basic Classic 2012 to 2015
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question