easy peasy, lemon squeezy (resolved)

sykes

Well-known Member
Joined
May 1, 2002
Messages
1,885
Office Version
  1. 365
Platform
  1. Windows
Hi Guys & Gals
This is even dafter than the last one I posted.Sorry in advance.
I'm selecting a cell in vba using offset, and simply want to add 1 to the value of the cell when I run the macro.
I've tried :
ActiveCell.Offset(rowOffset:=12, columnOffset:=10).value = value +1

but it just makes the contents of the cell 1.
Help.(please)

Told you it was daft.
Head hurts again!

Sykes



_________________
....and the meek shall inherit the earth...
(but not the mineral rights!)
This message was edited by sykes on 2002-07-26 04:52
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
ActiveCell.Offset(12,10).Value = ActiveCell.Offset(12,10).Value + 1

You can leave out Value - it is the default property.

Or

With Activecell.Offset(12,10)
.Value = .Value + 1
End With
 
Upvote 0
Does this work...


ActiveCell.Offset(rowOffset:=12, columnOffset:=10).value = ActiveCell.Offset(rowOffset:=12, columnOffset:=10).value + 1
 
Upvote 0
Thanks both of you.
That's done the trick.
Kindest
sykes.
 
Upvote 0

Forum statistics

Threads
1,225,043
Messages
6,182,543
Members
453,125
Latest member
SandwichTaker

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top