#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Transform.

Tom,
Doesn't that depend on the decimal separator ?

Nick

"Tom Ogilvy" wrote in message
...
Just to add to the excellent suggestion.

myVar = " 7.200"
? cdbl(myVar)
7.2

is a good thought, but unless it was a typo, it doesn't quite match the
requested results.

myNewVar = "7200"

perhaps

? cdbl(myvar)*1000
7200

with myNewVar dimensioned as String

--
Regards,
Tom Ogilvy


"Pierre " wrote in message
...
Alternatively, you can use also Cdbl

myvar1 = CDbl(myvar)


---
Message posted from http://www.ExcelForum.com/





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Transform.

Hi
in VBA always the dot is used as separator (regardless of your regional
settings)

--
Regards
Frank Kabel
Frankfurt, Germany


NickHK wrote:
Tom,
Doesn't that depend on the decimal separator ?

Nick

"Tom Ogilvy" wrote in message
...
Just to add to the excellent suggestion.

myVar = " 7.200"
? cdbl(myVar)
7.2

is a good thought, but unless it was a typo, it doesn't quite match
the requested results.

myNewVar = "7200"

perhaps

? cdbl(myvar)*1000
7200

with myNewVar dimensioned as String

--
Regards,
Tom Ogilvy


"Pierre " wrote in message
...
Alternatively, you can use also Cdbl

myvar1 = CDbl(myvar)


---
Message posted from http://www.ExcelForum.com/


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Transform.

He showed a period. Since he didn't state he wanted a turnkey internation
solution, then I guess not.

--
Regards,
Tom Ogilvy

"NickHK" wrote in message
...
Tom,
Doesn't that depend on the decimal separator ?

Nick

"Tom Ogilvy" wrote in message
...
Just to add to the excellent suggestion.

myVar = " 7.200"
? cdbl(myVar)
7.2

is a good thought, but unless it was a typo, it doesn't quite match the
requested results.

myNewVar = "7200"

perhaps

? cdbl(myvar)*1000
7200

with myNewVar dimensioned as String

--
Regards,
Tom Ogilvy


"Pierre " wrote in message
...
Alternatively, you can use also Cdbl

myvar1 = CDbl(myvar)


---
Message posted from http://www.ExcelForum.com/







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
transform formula driller Excel Worksheet Functions 3 January 12th 10 09:02 AM
How I transform a row into a column? Mosqui Excel Discussion (Misc queries) 0 January 19th 07 08:30 PM
How I transform a row into a column? Stefi Excel Discussion (Misc queries) 0 January 19th 07 08:22 PM
Table Transform James Excel Discussion (Misc queries) 3 December 5th 06 07:57 PM
Transform columns with VBA Michael E. Excel Programming 5 May 1st 04 05:57 PM


All times are GMT +1. The time now is 08:06 PM.

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"