Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Adding Numbers


I need a code that will add 1 to the number that is already in a cell


--
mikesr20
------------------------------------------------------------------------
mikesr20's Profile: http://www.excelforum.com/member.php...o&userid=29959
View this thread: http://www.excelforum.com/showthread...hreadid=498178

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Adding Numbers


cells(i,j).value = cells(i,j).value +1


--
duane


------------------------------------------------------------------------
duane's Profile: http://www.excelforum.com/member.php...o&userid=11624
View this thread: http://www.excelforum.com/showthread...hreadid=498178

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Adding Numbers

dim myCell as range
set mycell = activesheet.range("a1")
if isnumeric(mycell.value) then
mycell.value = mycell.value + 1
end if

mikesr20 wrote:

I need a code that will add 1 to the number that is already in a cell

--
mikesr20
------------------------------------------------------------------------
mikesr20's Profile: http://www.excelforum.com/member.php...o&userid=29959
View this thread: http://www.excelforum.com/showthread...hreadid=498178


--

Dave Peterson
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
Adding different numbers jaywizz Excel Discussion (Misc queries) 3 May 29th 08 06:17 PM
Adding numbers computerkiller Excel Discussion (Misc queries) 1 May 28th 08 03:05 AM
Adding numbers or characters to existing numbers Jannie Excel Worksheet Functions 9 February 20th 07 03:08 PM
Adding numbers... Pwel Excel Discussion (Misc queries) 4 August 11th 05 06:51 PM
Adding numbers to current numbers mk Excel Worksheet Functions 2 May 16th 05 11:25 PM


All times are GMT +1. The time now is 09:08 PM.

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

About Us

"It's about Microsoft Excel"