I've been working on the following coding since yesterday evening at around 9:30 p.m. It's now 4:00 a.m. (
) I'm making some headway on my project but progress is SLOW. Through a healthy dose of trial and error I've finally been able to make two more buttons in my sheet work (sorta). The buttons in the form below that are PINK work to one degree or another.
HCT ITP (2-28-14) Active Buttons.xlsm As before, all worksheets have the same password of "j".[/B]
The "Spell Checker" buttons work perfectly with the exception that it still spell checks the "locked" cells even though the code is supposed to only spell check the "unlocked" cells; that's only a minor inconvenience though. Here's the code I'm using for the spell checker:
Now the "Add STG" and "Add Objective Indicator" buttons are functional and copy and paste just fine but I've run into some problems once I've entered text into the blank cells. Let me show the code I'm using for both buttons first.
Code for the "Add STG" Button:
Would someone be so kind as to give me a brief explanation of how the numbers in the code below work; i.e. what cell do they start from, are they referring to up 7 over 1, number of rows/columns copied, etc.? I know there's a pattern but I just haven't been able to figure it out. I got where I am by trial and error but I'm not confident enough of the concept to start the coding on my additional buttons just yet. Thanks.
Code for the "Add Objective Indicator" Button:
As I said, both "Add..." buttons copy and paste the rows I'm needing to duplicate. The problems that I'm having are as follows:
(1) When I add text into the unlocked cells and then click either of the "Add...." buttons the rows that are pasted are carbon copies of whatever I've already entered in the previous rows. I need the newly pasted cells to "reset" to a default state so I don't have to erase the text that's already been entered in the cells I'm copying from. One method I've thought of is to reference somehow in my code a carbon copy of this worksheet that has been copied to a separate "validation" sheet; one that would be hidden and not printable.
(2) When I copy and paste a new STG using the "Add STG" button, the new STG is a carbon copy of the original therefore the second STG still reads "STG 1". I need the code to add 1 to each goal (as well as subtract one once I get my "Delete STG" button up and running).
(3)The cell adjacent to "Due Date" auto-populates from a corresponding cell in the first worksheet (see formula below):
When I click the "Add STG" button the formula in the cell adjacent to the "Due Date" changes to the following formula which means the cell remains blank or will have inaccurate data:
How do I keep the formula with a cell when I'm using a macro to copy and paste?
(4) I'm having trouble finding coding language that will allow specific data from the second worksheet (HCT ITP Goals & Objectives) to auto-populate corresponding cells in the fourth worksheet (BHP Copy of ITP Goals & Obj.) The fourth worksheet is intended to be locked so only certain information gets transferred to that worksheet. Is there a simplistic way of coding this?
(5) And finally, I need the "Add Obj" and "Delete Obj" buttons to copy and paste along with the specified rows as indicated above. Should I link the buttons to the cells they are over or is there a specific line of coding that ties them to the copy and paste function?
I really appreciate any feedback that is available to help help me out. 
Matthew
Bookmarks