Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Making Cells Automatically Add #'s Instead of being written over

So, some people i work with use a Tally Sheet, They constantly are
adding numbers upon numbers over and over all day long, it would be
nice if there were a way that if in say cell a1, there was the value 35
, and if you typed the value 5 in that cell, the value would then
change to 40.

Ive thought of ways around this, but i think on the scale im needing it
will bog down the spreadsheet, memory wise that is.

Thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Making Cells Automatically Add #'s Instead of being written over

This is the only way i have found, but how to change it to work with a
range, not just one cell.

Public A


Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Application.EnableEvents = False
[a1] = [a1] + A
Application.EnableEvents = True
End Sub


Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
A = [a1]
End Sub

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Making Cells Automatically Add #'s Instead of being written over


Do you want the value typed in added to an entire range? How would th
range be specified

--
bhofset
-----------------------------------------------------------------------
bhofsetz's Profile: http://www.excelforum.com/member.php...fo&userid=1880
View this thread: http://www.excelforum.com/showthread.php?threadid=38023

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Making Cells Automatically Add #'s Instead of being written over


UBER_GEEK Wrote:
This is the only way i have found, but how to change it to work with a
range, not just one cell.

Public A


Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Application.EnableEvents = False
[a1] = [a1] + A
Application.EnableEvents = True
End Sub


Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
A = [a1]
End Sub



Perhaps this may help you out ??

http://www.xcelfiles.com/VBA_02.htm

--
Ivan F Moal

-----------------------------------------------------------------------
Ivan F Moala's Profile: http://www.excelforum.com/member.php...nfo&userid=195
View this thread: http://www.excelforum.com/showthread.php?threadid=38023

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
How do I input these formulas into cells that I want written in? Paige Excel Worksheet Functions 4 December 31st 08 03:44 AM
how to account the number of cells which is bank and written? jack Excel Discussion (Misc queries) 1 May 8th 07 05:22 PM
automatically making a copy of a sheet starguy Excel Worksheet Functions 0 April 21st 06 11:34 AM
making macro run automatically Paul Excel Programming 1 November 26th 04 10:18 PM
How to protect single cell or cells range from being over-written? Michael[_15_] Excel Programming 1 October 1st 03 04:50 AM


All times are GMT +1. The time now is 03:07 PM.

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"