Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to fix a problem with a column that displays ### instead of the
correct value programmatically. If I open the spreadsheet manually I can widen the column and the values appear and it's done. When I read the values programmatically I get ###s. I've tried to resolve this by widening the column using Range.ColumnWidth as well as calling RAnge.AutoFit() to no avail. Any ideas anyone? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
use the value property instead of the Text property and you shouldn't get the
### activecell.EntireColumn.Autofit should fit the column unless you have merged cells. -- Regards, Tom Ogilvy "Alex B." wrote: I need to fix a problem with a column that displays ### instead of the correct value programmatically. If I open the spreadsheet manually I can widen the column and the values appear and it's done. When I read the values programmatically I get ###s. I've tried to resolve this by widening the column using Range.ColumnWidth as well as calling RAnge.AutoFit() to no avail. Any ideas anyone? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When you grab the value of the cell programatically use value instead of
text. this will grab the value of the cell, instead of the text displayed. msgbox range("A1").Text 'shows ##### msgbox range("A1").value 'shows 12345 -- HTH... Jim Thomlinson "Alex B." wrote: I need to fix a problem with a column that displays ### instead of the correct value programmatically. If I open the spreadsheet manually I can widen the column and the values appear and it's done. When I read the values programmatically I get ###s. I've tried to resolve this by widening the column using Range.ColumnWidth as well as calling RAnge.AutoFit() to no avail. Any ideas anyone? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
With this spreadsheet
range("A1").Text range("A1").Value range("A1").Value2 all show "#########". Also range("A1").columnWidth = 500 range("A1").autofit() do not resolve the problem. if I open the same spreadsheet with Excel the column originally appears with ###s but if I expand the column the correct values appear. Anyone else have any ideas??? "Jim Thomlinson" wrote: When you grab the value of the cell programatically use value instead of text. this will grab the value of the cell, instead of the text displayed. msgbox range("A1").Text 'shows ##### msgbox range("A1").value 'shows 12345 -- HTH... Jim Thomlinson "Alex B." wrote: I need to fix a problem with a column that displays ### instead of the correct value programmatically. If I open the spreadsheet manually I can widen the column and the values appear and it's done. When I read the values programmatically I get ###s. I've tried to resolve this by widening the column using Range.ColumnWidth as well as calling RAnge.AutoFit() to no avail. Any ideas anyone? |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "Jim Thomlinson" wrote: When you grab the value of the cell programatically use value instead of text. this will grab the value of the cell, instead of the text displayed. msgbox range("A1").Text 'shows ##### msgbox range("A1").value 'shows 12345 -- HTH... Jim Thomlinson "Alex B." wrote: I need to fix a problem with a column that displays ### instead of the correct value programmatically. If I open the spreadsheet manually I can widen the column and the values appear and it's done. When I read the values programmatically I get ###s. I've tried to resolve this by widening the column using Range.ColumnWidth as well as calling RAnge.AutoFit() to no avail. Any ideas anyone? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I remove a Calculated Field from the Pivot Table field list | Excel Discussion (Misc queries) | |||
How to make a field created a part of the Pivot Table Field List? | Excel Discussion (Misc queries) | |||
Linked date field in worksheet defaults a blank field as 1/0/1900 | Excel Worksheet Functions | |||
Bolding middle of a field programmatically | Excel Programming | |||
Programmatically reading data field values from PivotTable | Excel Programming |