Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm looking for a code that I could use to format an excel cell dynamically
for an card account number field type with more than 15 digits. Here is the scenario. Column name: Card Account Card account number: xxxxxxxxxxxxxxxx I cannot format the cells as number so I have to format as text. However, when I run the process with the VBA code that I have telling to format as text (@) it gives me this result in scientific notation because of the length, I think. Here is the VBA .NET code: Select Case sFieldType Case "Text" objWorksheet.Range(objWorksheet.Cells(2, i + 1), objWorksheet.Cells(CStr(mlRecordCount), i + 1)).NumberFormat = "@" I just need to display the acc. number as is...can someone please help me! I gladly appreciatted, Sincerely, Marlei Taylor |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Combine text from multiple cells into one cell - =(A1&","&A2","&A3 | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Excel: Changing "numeric $" to "text $" in a different cell. | Excel Worksheet Functions | |||
I have to double click a cell for the "text" format to take | Excel Discussion (Misc queries) | |||
How do I set Excel cell format to "Text" from VB.NET? | Excel Programming |