Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Want to get exact decimal value.

Hi,

I'm writing a macro to expedite my project work. I need little help
from you.

I'm using a multidimensional array to capture data from excel spread
sheet. The fields hold values in decimal, i.e. 33.5462 and so.

Now my concern is that when I run the following code - para_code(v_i,
h_i) = Val(ActiveCell.Value) I get an whole value, i.e. 34 instead of
33.5462.

Please let me know how to transmit the value as it is.

Thanks a lot in advance!!!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Want to get exact decimal value.

How did you declare para_code()?

As Double or as Long?

Alwyn wrote:

Hi,

I'm writing a macro to expedite my project work. I need little help
from you.

I'm using a multidimensional array to capture data from excel spread
sheet. The fields hold values in decimal, i.e. 33.5462 and so.

Now my concern is that when I run the following code - para_code(v_i,
h_i) = Val(ActiveCell.Value) I get an whole value, i.e. 34 instead of
33.5462.

Please let me know how to transmit the value as it is.

Thanks a lot in advance!!!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Want to get exact decimal value.

Oh!!!

Now i realise my mistake i had declared para_code() as integer. I can
now fix it.

Thanks a lot Mr. Peterson.
__________________________________________________ _______________________

Dave Peterson wrote:

How did you declare para_code()?

As Double or as Long?

Alwyn wrote:

Hi,

I'm writing a macro to expedite my project work. I need little help
from you.

I'm using a multidimensional array to capture data from excel spread
sheet. The fields hold values in decimal, i.e. 33.5462 and so.

Now my concern is that when I run the following code - para_code(v_i,
h_i) = Val(ActiveCell.Value) I get an whole value, i.e. 34 instead of
33.5462.

Please let me know how to transmit the value as it is.

Thanks a lot in advance!!!


--

Dave Peterson


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
Formula for: Format Decimal places? nastech Excel Discussion (Misc queries) 16 November 4th 05 02:25 PM
h:mm to decimal value Brent E Excel Discussion (Misc queries) 4 October 11th 05 07:09 PM
Excel adds phantom decimal places: why? Dave O Excel Discussion (Misc queries) 1 August 16th 05 06:25 PM
FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT. SUKYKITTY Excel Discussion (Misc queries) 3 July 6th 05 01:50 PM
decimal point override does not work Sam Brauen Excel Discussion (Misc queries) 0 January 6th 05 05:29 PM


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