MatthewOliver
New Member
- Joined
- Nov 13, 2018
- Messages
- 3
Morning (or afternoon or evening),
If someone could help this one it would really help me out.
I have a Workbook which has a button 'Update' on a worksheet called "Front". Ideally when the 'Update' button is pressed I would like the user to be requested to input a password. If not correct they could still view the workbook but not update it.
If the password is correct I would ideally like the Macro to open up two other workbooks called "Book 1" and "Book 2" both located in the folder C:\Mydocuments\Database\Data" and copy data from worksheets contained within.
For "Book 1" the worksheet is "Sheet 1". The Range is A2:M200 (but if you can copy the whole worksheet this would work)
For "Book 2" the worksheet is "Data". The range is the same as above and ok again if it's the whole worksheet.
If possible I would like the macro to shut down "Book 1" and "Book 2" and paste the data into the active workbook (named: Database). The pasting location in the active workbook is "Sheet 9" & "Sheet 10" (doesn't matter which one contains which).
Fingers crossed this makes sense and thank you to anyone who can help me out!
Matthew
If someone could help this one it would really help me out.
I have a Workbook which has a button 'Update' on a worksheet called "Front". Ideally when the 'Update' button is pressed I would like the user to be requested to input a password. If not correct they could still view the workbook but not update it.
If the password is correct I would ideally like the Macro to open up two other workbooks called "Book 1" and "Book 2" both located in the folder C:\Mydocuments\Database\Data" and copy data from worksheets contained within.
For "Book 1" the worksheet is "Sheet 1". The Range is A2:M200 (but if you can copy the whole worksheet this would work)
For "Book 2" the worksheet is "Data". The range is the same as above and ok again if it's the whole worksheet.
If possible I would like the macro to shut down "Book 1" and "Book 2" and paste the data into the active workbook (named: Database). The pasting location in the active workbook is "Sheet 9" & "Sheet 10" (doesn't matter which one contains which).
Fingers crossed this makes sense and thank you to anyone who can help me out!
Matthew