Hayley Howells
New Member
- Joined
- May 20, 2014
- Messages
- 6
Hi there, thanks for reading - I'm a total newbie to VBA so this is a steep learning curve for me. I am working on a file for person identifiable information to be collected, but the file needs code to anonymise the information before it can be returned to me. Essentially I have a "Master" sheet to collect data for each person, which is hidden, and another sheet called "Instructions".
I already have code for the master sheet to be replicated using a button for adding a new patient, which includes a message box to write the patient's name into the tab name, so whilst data is collected, the workbook will contain a variable number of worksheets all named after individual people.
What I want to do is create another button to be able to clear the contents of cells b2 to c7 in each of the sheets named after a patient, and also to rename all the patient sheets, something unique like patient 1, patient 2 etc, all the while ignoring the master and instruction sheets. Is this do-able?
Any help appreciated.
I already have code for the master sheet to be replicated using a button for adding a new patient, which includes a message box to write the patient's name into the tab name, so whilst data is collected, the workbook will contain a variable number of worksheets all named after individual people.
What I want to do is create another button to be able to clear the contents of cells b2 to c7 in each of the sheets named after a patient, and also to rename all the patient sheets, something unique like patient 1, patient 2 etc, all the while ignoring the master and instruction sheets. Is this do-able?
Any help appreciated.
