Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.excel.programming > #110780

a button to add 1 to a SPECIFIC cell

From ChautauquaSun1 <ChautauquaSun1.163e0118@excelbanter.com>
Newsgroups microsoft.public.excel.programming
Subject a button to add 1 to a SPECIFIC cell
Date 2018-11-23 18:02 +0000
Message-ID <ChautauquaSun1.163e0118@excelbanter.com> (permalink)
Organization ExcelBanter.com

Show all headers | View raw


I am sure this is a really easy one to answer.  I am not a programmer
and cant seem to figure out this macro formula  Here is the formula I am
using to add 1 every time I press a button.  However what I realized is
that it assigns the value to the cell that my cursor is in.  I will be
using 4 buttons and need to have the values show in specific cells.   So
I need to modify he formula to display the result in a specifically
assigned cell.  Can anyone show me where to put this value in the
formula.

Code:
--------------------
Sub Add1()
Selection.Value = Selection.Value + 1
Beep
End Sub

thanks!




-- 
ChautauquaSun1

Back to microsoft.public.excel.programming | Previous | NextNext in thread | Find similar | Unroll thread


Thread

a button to add 1 to a SPECIFIC cell ChautauquaSun1 <ChautauquaSun1.163e0118@excelbanter.com> - 2018-11-23 18:02 +0000
  Re: a button to add 1 to a SPECIFIC cell d.e.lindstrom@gmail.com - 2018-11-25 14:39 -0800

csiph-web