Hi Rick,
Insert the following code in the VBA module of the worksheet in which you want to provide the "Add Column" feature:
Any time a cell's value changes from a blank to a non-blank value, a new column will be inserted to the right of the cell whose value has just changed. It's necessary to include the "blank to non-blank" check, otherwise simply EDITING an existing value in the middle of the data row would cause a new column to be inserted (also in the middle of the data row!)
I feel you'll probably need to define a worksheet range outside of which this feature will NOT apply - if not you might end up adding new columns left, right and centre! Let me know if you need help in restricting this feature.
Hope this helps - please let me know how you get on.
Best regards,
Greg M
Bookmarks