LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
DPM DPM is offline
external usenet poster
 
Posts: 5
Default How to Format the entered Numeric Values of a Excel sheet's column as Text

Hi,

I need to convert the Numbers as Text entered in a column of a Excel sheet.
Eventhough formatted the Column with the following the Column and each cell
gets formatted but the values in the cell still remains as Number.
NumberFormat = "@"

Found the following function from Excel by running a macro and selecting the
"Data"="Text to Columns" option which converts the Numbers to Text

The VB script of the recorded macro is as follows,
Selection.TextToColumns Destination:=Range("D4"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False,
Tab:=False, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False,
FieldInfo _
:=Array(1, 2), TrailingMinusNumbers:=True

Could someone please advice on what these parameters mean, specially the
"FieldInfo:=Array(1, 2)", don't know from where this array is
generated.
I need the code to be run from VFP.

Also is there any other way to convert the Numbers into Text,
programmetically ?


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting values which are in Numeric format to word format Frnc Excel Discussion (Misc queries) 1 July 2nd 08 08:42 AM
how to change format of several dates entered in an Excel column ilyaz New Users to Excel 2 August 1st 06 05:34 AM
based on Cell/Column content ,cut one sheet's values and paste it in other sheet? mindpeace[_3_] Excel Programming 0 May 25th 06 01:33 PM
based on Cell/Column content ,cut one sheet's values and paste it in other sheet? mindpeace Excel Programming 3 May 24th 06 03:33 PM
Max value in 1 column when all values format are text coco Excel Programming 2 June 21st 05 07:40 PM


All times are GMT +1. The time now is 06:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"