Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ulf Ulf is offline
external usenet poster
 
Posts: 1
Default convert text to data with decimals

Hello
I use this sub to convert columns in a workbook
(generated in SQL-server). Data has text format and I
need to get data format. This works ok - except when data
has decimals - then it remains in text format. I canīt
figure out what to do - any assistance appreciated!

Sub FormatColValue2()
' formats imported text columns to values

Dim i As Long
Dim rng As Range
Dim col As Long

For i = LBound(vArr) To UBound(vArr)
col = vArr(i)
Set rng = Range(Cells(2, col), Cells(Rows.Count,
col).End(xlUp))
rng.Formula = rng.Value
Next

End Sub
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
convert fractions to decimals Shannon Excel Worksheet Functions 4 March 6th 08 04:33 AM
How do I convert 4'6" into decimals? Curious Excel Worksheet Functions 2 November 14th 06 11:34 PM
Pivot table formats text data with 2 decimals Don S Excel Discussion (Misc queries) 3 October 6th 05 12:45 AM


All times are GMT +1. The time now is 09:30 PM.

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"