JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,687
- Office Version
- 365
- Platform
- Windows
Maybe the Alzheimer's is worse than I thought. I am trying to use this custom format to get numbers right-justified, but with a small margin on the right.
It works almost all of the time. There is one situation in one workbook where it fails and I cannot figure out why.
If I enter some numbers in some cells and apply this format, plus set the alignment to the right, it works perfectly. But when I apply it to a column of numbers that are the result of a UDF, it fails. As far as I can tell, all of the other cell attributes re identical (right align, right indent 0, bottom alignment, wrap off, shrink to fit off, merge cells off, no border.
If I copy the value of the cells to another column, the same thing happens.
BUT if I manually type the exact same value into the cell, the format works.
Is it possible that my UDF is returning a value with some attribute that conflicts with the custom format? If so, what is it? I have lots of other UDFs and none of them do this. This UDF returns a Variant value.
Help!!!
Code:
0.00_.
It works almost all of the time. There is one situation in one workbook where it fails and I cannot figure out why.
If I enter some numbers in some cells and apply this format, plus set the alignment to the right, it works perfectly. But when I apply it to a column of numbers that are the result of a UDF, it fails. As far as I can tell, all of the other cell attributes re identical (right align, right indent 0, bottom alignment, wrap off, shrink to fit off, merge cells off, no border.
If I copy the value of the cells to another column, the same thing happens.
BUT if I manually type the exact same value into the cell, the format works.
Is it possible that my UDF is returning a value with some attribute that conflicts with the custom format? If so, what is it? I have lots of other UDFs and none of them do this. This UDF returns a Variant value.
Help!!!