Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
CJ CJ is offline
external usenet poster
 
Posts: 102
Default Button to add 1 to selected cell

Hi Groupies:

I would like to create a macro that allows me to add the value of 1 to the
content of any cell that I select.

For example:

If I select a10,b12,c23 and d45, I would like to click on a button and have
their current content increase by 1.

I think this needs to be done in VBA code, but I am not sure what to do or
how to start ...........something like x=x+1.....

Any ideas or suggestions?

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
CJ CJ is offline
external usenet poster
 
Posts: 102
Default Button to add 1 to selected cell

Hi Don:

That is exactly what I wanted. I'm not sure if I went about it properly, I
pretended to record a macro, stopped recording and then edited to add your
text.

Thanks a bunch!

CJ

"Don Guillett" wrote:

how about
for each c in selection
c.value=c+1
next

--
Don Guillett
SalesAid Software

"CJ" wrote in message
...
Hi Groupies:

I would like to create a macro that allows me to add the value of 1 to the
content of any cell that I select.

For example:

If I select a10,b12,c23 and d45, I would like to click on a button and
have
their current content increase by 1.

I think this needs to be done in VBA code, but I am not sure what to do or
how to start ...........something like x=x+1.....

Any ideas or suggestions?

Thanks





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
Create a "cell button" to hide selected cells. Shoolin Patel Excel Worksheet Functions 12 July 30th 07 11:00 AM
If option button not selected Hywel[_2_] Excel Programming 2 November 8th 05 09:32 AM
Checking to see if a button is selected cheaperThanAPro[_4_] Excel Programming 4 October 22nd 05 12:44 AM
How do I lock a radio button group if a N/A button is selected worry a lot Excel Discussion (Misc queries) 2 May 21st 05 08:33 PM
Determine which button was selected ?? dcarr Excel Programming 4 October 27th 04 11:02 PM


All times are GMT +1. The time now is 08:54 AM.

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"