Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Andrew Clark
 
Posts: n/a
Default Number stored as text

Hello,

I have a little VBA app that pulls data from a database. All data is
brought in correctly, but one column will not format as number, and
when I save the resulting workbook, I get all those "Number stored as
text" smart tags. I can't figure out what to put here ("General"
doesn't seem to work here):

Columns("D:D").NumberFormat = ?

to store those numbers as numbers and not text. MSDN has been most
unhelpful. Any suggestions?

Thanks,
Andrew

  #2   Report Post  
Gary''s Student
 
Posts: n/a
Default Number stored as text

In either VBA or on the worksheet, once the values have been entered, place 1
in an un-used cell, copy it and paste/special with muliply checked over the
cells you want to convert to numbers.
--
Gary's Student


"Andrew Clark" wrote:

Hello,

I have a little VBA app that pulls data from a database. All data is
brought in correctly, but one column will not format as number, and
when I save the resulting workbook, I get all those "Number stored as
text" smart tags. I can't figure out what to put here ("General"
doesn't seem to work here):

Columns("D:D").NumberFormat = ?

to store those numbers as numbers and not text. MSDN has been most
unhelpful. Any suggestions?

Thanks,
Andrew


Reply
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
Paste a number as text Alex Häflliger Excel Discussion (Misc queries) 3 August 19th 05 01:48 PM
PREVENT conversion of text to number? celticvalley Excel Discussion (Misc queries) 2 August 17th 05 02:52 PM
Format Number to Text Roni Excel Worksheet Functions 2 May 17th 05 03:17 PM
Defining a number in a cell by text then subtracting it by the tex Crowraine Excel Worksheet Functions 1 December 16th 04 07:49 AM
returning a text cell based on a number cell Josh7777777 Excel Worksheet Functions 2 November 2nd 04 07:42 PM


All times are GMT +1. The time now is 08:00 AM.

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

About Us

"It's about Microsoft Excel"