LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default How to write this correctly?

Hi everone,

I have this line of VBA code:

ARngSolution(Cline, Aline).Value = Val(Left(ARngSolution(Cline,
Aline).Value, 7))

One of the values that it writes down comes like this: 3.84894 while
when I checked it using MsgBox, it came as this: 3.84894E-02

What should I do to let the code write it correctly as: .0384894?

Regards,
Mike
 
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
not printing correctly QB Excel Discussion (Misc queries) 0 November 3rd 09 09:49 PM
How to correctly write a cross-sheet "IF" formula in Excel Jay Excel Worksheet Functions 4 November 17th 05 01:20 AM
is it possible to execute write to the fields in another .xsl form a macro in another .xsl? e.g. some way to load another .xsl into an .xsl macro and write to its data? Daniel Excel Worksheet Functions 1 June 23rd 05 11:38 PM
How do I use checkboxes correctly? erikeve Excel Discussion (Misc queries) 1 January 15th 05 06:31 PM
I hope I ask this correctly Mark Excel Programming 3 March 5th 04 03:23 PM


All times are GMT +1. The time now is 04:48 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"