#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default what does this mean?

ok, I understand offsetting rows and column, but what is ".Value + 273#"

Set cell = ActiveCell
T1 = cell.Offset(0, 0).Value + 273#

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default what does this mean?

It adds 273 to the value in the activecell and stores it into a variable named
T1.

..offset(0,0) doesn't help. the code is still pointing to Cell.

with 273#, the octothorpe (#) means to treat 273 as a double. See VBA's help
for different kinds of data types.



widman wrote:

ok, I understand offsetting rows and column, but what is ".Value + 273#"

Set cell = ActiveCell
T1 = cell.Offset(0, 0).Value + 273#


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default what does this mean?


"Dave Peterson" wrote in message
...
It adds 273 to the value in the activecell and stores it into a variable
named
T1.

.offset(0,0) doesn't help. the code is still pointing to Cell.

with 273#, the octothorpe (#) means to treat 273 as a double.


Which is pointless, 273 is 273 whether declared as double or long


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default what does this mean?

Except in some weird cases to avoid overflow errors.

Bob Phillips wrote:

"Dave Peterson" wrote in message
...
It adds 273 to the value in the activecell and stores it into a variable
named
T1.

.offset(0,0) doesn't help. the code is still pointing to Cell.

with 273#, the octothorpe (#) means to treat 273 as a double.


Which is pointless, 273 is 273 whether declared as double or long


--

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



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