ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   ActiveCell (https://www.excelbanter.com/excel-programming/387884-activecell.html)

Esau[_3_]

ActiveCell
 
Is there away to get this to work

Activecell.Value = Offset(-1 , 9)

Thanks
--
Esau

JE McGimpsey

ActiveCell
 
Assuming you're trying to assign the value one column to the left and
nine columns down from the active cell, one way:

With ActiveCell
.Value = .Offset(-1, 9).Value
End With

or, more verbosely:

ActiveCell.Value = ActiveCell.Offset(-1, 9).Value


In article ,
Esau wrote:

Is there away to get this to work

Activecell.Value = Offset(-1 , 9)

Thanks


Esau[_3_]

ActiveCell
 
Thanks they both work great
--
Esau


"JE McGimpsey" wrote:

Assuming you're trying to assign the value one column to the left and
nine columns down from the active cell, one way:

With ActiveCell
.Value = .Offset(-1, 9).Value
End With

or, more verbosely:

ActiveCell.Value = ActiveCell.Offset(-1, 9).Value


In article ,
Esau wrote:

Is there away to get this to work

Activecell.Value = Offset(-1 , 9)

Thanks




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

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