keeping a column in numerical order on workbook_change

Status
Not open for further replies.

hc

New Member
Joined
Dec 22, 2003
Messages
31
I need a simple Worksheet_Change macro that will do the following:

Code:
A            B
January      1
.
.
.                <-- variable amount of rows
.
January      2
.
.
January      3   <-- variable amount, but always from 1 onwards
.
.
.
February     1
.
. 
February     2
.
.
February     3
.
.
March        1
.
.
.
etc. for the entire year

- If at any time I delete the lines that make up January 2, then January 3 must automatically become January 2, February etc. must remain as is.

- If I delete January 1, then January 2 must become January 1 and January 3 must become January 2.

- If I delete February 3, then do nothing.

Thank you.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Status
Not open for further replies.

Forum statistics

Threads
1,215,420
Messages
6,124,803
Members
449,190
Latest member
cindykay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top