LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 516
Default Macro to update contents of cell

Not sure about the macro, so if no one else responds this may be an
alternate solution: Does the value of the cell meet a certain condition for
you to add 100? If so, you may want to use two rows, such as A and B. Row A
contains your value and Row B contains a formula --- example [Adds 100 if
the value in the A Cell is greater than 70] Cell A1 = 50, Cell A2= 75, Cell
A3=80. Cell B1= "=if(A170,a1+100,a1) The result in B1 would be 50. You can
copy the cell B1 and paste it into B2 & B3 and it will adjust the formula
accordingly. The following results will be: B2 = 175 and B3 = 180.

You can then use the value in column B for whatever use you need.




"Louise" wrote:

I have created a very basic macro which adds 100 onto the value of the
current cell and have assigned it as an icon on my toolbar.

The macro works perfectly, however, I have to run the macro on individual
cells which, if I have a large worksheet can take quite a while. Is there a
way I can adjust/edit the macro so I can select a range of cells and it will
adjust them all at the same time?

I have extremely limited knowledge of VBA!!!

Thank you very much.

Louise



 
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
Macro to transfer contents of 'Selected' cell to alternate cell. Gryndar Excel Worksheet Functions 7 December 20th 08 09:58 PM
Update cell contents based on worksheet name PJ Excel Discussion (Misc queries) 1 August 8th 07 10:37 PM
Can I use cell contents to update footers in excel? GregW Excel Discussion (Misc queries) 2 August 15th 05 06:49 PM
Macro to remove contents of cell and move all other contents up one row adw223 Excel Discussion (Misc queries) 1 July 1st 05 03:57 PM
Update - Include cell contents in filename automatically Bryan Linton Excel Programming 1 September 3rd 04 07:08 PM


All times are GMT +1. The time now is 09:26 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"