Question about transferring data from Sheet 1 to Sheet 2

Nesto14

New Member
Joined
Nov 21, 2014
Messages
16
I created an excel file using Macro, where I input data into sheet one and click submit to send it to sheet 2. Now I need help protecting sheet 2 but for the data to still transfer from sheet 1 to sheet 2 while it's protected. Is this possible? Sorry I'm new to excel....
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
In the macro you use to send the data to Sheet2, put the following line at the beginning of the macro:
Code:
Sheets("Sheet2").Unprotect Password:="password"
and the following line at the end of the macro:
Code:
Sheets("Sheet2").Protect Password:="password"
Replace "password" with the actual password you are using.
 
Upvote 0
Thank you very much, worked perfectly!!! What if I wanted to only protect Columns A-E in sheet 2 though?
 
Upvote 0
In the macro you use to send the data to Sheet2, put the following line at the beginning of the macro:
Code:
Sheets("Sheet2").Unprotect Password:="password"
and the following line at the end of the macro:
Code:
Sheets("Sheet2").Protect Password:="password"
Replace "password" with the actual password you are using.

Thank you very much, worked perfectly!!! What if I wanted to only protect Columns A-E in sheet 2 though?
 
Upvote 0
You would have to unlock all the cells starting from column F.
 
Upvote 0
You would have to unlock all the cells starting from column F.


I know what happened, I have it to enter the entire row from sheet 1 to sheet 2 so when the row gets submitted from sheet 1 to sheet 2 it locks that entire row. Can you use macro to only lock certain columns?
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,427
Members
448,961
Latest member
nzskater

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