LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
C C is offline
external usenet poster
 
Posts: 61
Default VBA to add one to columns on condition

I am looking for some VBA code that will add one to Column B when executed.
I also need this code to add one to column A when Column B is equal to 12 and
reset column B to 0. This SS contains years and months. However, I want to
execute this manually once a month.

Can someone help?

Example:

March 2009
Column A Column B
1 11

April 2009 After Macro Execution
Column W Column X
2 0

May 2009 After Macro Execution
Column W Column X
2 1

June 2009 After Macro Execution
Column W Column X
2 2


Thanks in advance.

C

 
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
count if condition in two columns MusicMan Excel Worksheet Functions 4 November 21st 09 02:12 PM
How to Add columns if a condition exists swanley007 Excel Discussion (Misc queries) 1 May 5th 08 11:11 AM
Hide Columns Based on Condition Skornia115 Excel Programming 9 July 6th 06 04:49 PM
Hide Columns Based on Condition [email protected] Excel Programming 1 July 5th 06 07:40 PM
Hide Columns On Condition Dominique Feteau[_2_] Excel Programming 6 January 22nd 05 08:16 AM


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