ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   what does this mean? (https://www.excelbanter.com/excel-discussion-misc-queries/122749-what-does-mean.html)

widman

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#


Dave Peterson

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

Bob Phillips

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



Dave Peterson

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


All times are GMT +1. The time now is 06:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com