Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.excel.programming > #110780 > unrolled thread
| Started by | ChautauquaSun1 <ChautauquaSun1.163e0118@excelbanter.com> |
|---|---|
| First post | 2018-11-23 18:02 +0000 |
| Last post | 2018-11-25 14:39 -0800 |
| Articles | 2 — 2 participants |
Back to article view | Back to microsoft.public.excel.programming
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
| From | ChautauquaSun1 <ChautauquaSun1.163e0118@excelbanter.com> |
|---|---|
| Date | 2018-11-23 18:02 +0000 |
| Subject | a button to add 1 to a SPECIFIC cell |
| Message-ID | <ChautauquaSun1.163e0118@excelbanter.com> |
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
[toc] | [next] | [standalone]
| From | d.e.lindstrom@gmail.com |
|---|---|
| Date | 2018-11-25 14:39 -0800 |
| Message-ID | <7c059ed0-cbb3-48b1-aa4c-86a545684c4d@googlegroups.com> |
| In reply to | #110780 |
Sub Add1()
Range("A1").Value = Range("A1").Value + 1
Beep
End Sub
[toc] | [prev] | [standalone]
Back to top | Article view | microsoft.public.excel.programming
csiph-web