ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   incrementing a cell value (https://www.excelbanter.com/excel-programming/403711-incrementing-cell-value.html)

Jay Fincannon

incrementing a cell value
 
how can i shorten this?

ActiveCell.Offset(0, 1 - ActiveCell.Column) = ActiveCell.Offset(0, 1
ActiveCell.Column) +1

Don Guillett

incrementing a cell value
 
What are you trying to do?

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Jay Fincannon" wrote in message
...
how can i shorten this?

ActiveCell.Offset(0, 1 - ActiveCell.Column) = ActiveCell.Offset(0, 1
ActiveCell.Column) +1



Bob Phillips

incrementing a cell value
 
With Cells(ActiveCell.Row, "A")
.Value = .Value + 1
End With


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Jay Fincannon" wrote in message
...
how can i shorten this?

ActiveCell.Offset(0, 1 - ActiveCell.Column) = ActiveCell.Offset(0, 1
ActiveCell.Column) +1





All times are GMT +1. The time now is 01:31 AM.

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