Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a spreadsheet and some of the columns are formatted. For example, in
one column is a phone number. The value typed in is 8001234567 and when you are simply viewing the cell it shows (800) 123 - 4567 (the cell is formatted as Special: Phone Number). When I read (via vbscript) I get the 8001234567. Set excel = CreateObject("Excel.Application") excel.workbooks.Open "spreadsheet.xls" excel.WorkSheets(1).Activate phone = excel.ActiveSheet.Cells(1,1).Value I would prefer to get the formatted value in the spreadsheet (i.e. (800) 123 - 4567). I've searched and so far not turned up much. Any pointers would be greatly appreciated. BBB |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
linking a text formatted cell to a formula cell | Excel Discussion (Misc queries) | |||
Why do I get this ###### instead of 11:00 p.m. in formatted cell? | New Users to Excel | |||
Formatted Cell | Excel Discussion (Misc queries) | |||
Converting 'General' formatted cells to Text formatted cell using. | Excel Worksheet Functions | |||
REQ: Simplest way to parse (read) HTML formatted data in via Excel VBA (or VB6) | Excel Programming |