Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default incrementing a cell value

how can i shorten this?

ActiveCell.Offset(0, 1 - ActiveCell.Column) = ActiveCell.Offset(0, 1
ActiveCell.Column) +1
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default 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



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
Incrementing cell reference Paul Mugleston[_2_] Excel Discussion (Misc queries) 1 January 10th 08 04:06 PM
incrementing mm/yy based on value in other cell George Excel Worksheet Functions 2 March 1st 06 03:41 AM
Incrementing a cell anar_baku[_3_] Excel Programming 1 August 2nd 05 01:22 PM
Incrementing a cell Kaak[_30_] Excel Programming 0 August 2nd 05 12:17 PM
Incrementing Cell Numbers Lance W. Grimes Excel Discussion (Misc queries) 1 March 8th 05 07:51 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"