Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Protecting Sheet with Password

Hi:

I have a sheet that I copy and past with a macro. The original shee
is protected with a password but when the macro copies and pastes int
another sheet, it is no longer protected.

Is there a way to pass a password to protect the new sheet???


thanks

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Protecting Sheet with Password

Couldn't you just password protect it after you did the paste?

Or do you mean you want to use the same password--and it's not available to you?



"halem2 <" wrote:

Hi:

I have a sheet that I copy and past with a macro. The original sheet
is protected with a password but when the macro copies and pastes into
another sheet, it is no longer protected.

Is there a way to pass a password to protect the new sheet???

thanks!

---
Message posted from http://www.ExcelForum.com/


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Protecting Sheet with Password

the spreadsheet will be used by 15 different users in 15 differen
geographical locations. I'm trying to avoid having any of them chang
the sheet. I am the one passwording the sheet

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Protecting Sheet with Password

If you're the one applying the password and writing the code, then you should be
able do your stuff and protect the worksheet.

dim wks1 as worksheet
dim wks2 as worksheet

set wks1 = worksheets("sheet1")
set wks2 = worksheets("sheet2")

wks1.range("a1:b9").copy _
destination:=wks2.range("a1")

wks2.protect password:="hi"

I guess you didn't even need to unprotect your original worksheet to copy the
data.

(I misunderstood that portion of your question.)





"halem2 <" wrote:

the spreadsheet will be used by 15 different users in 15 different
geographical locations. I'm trying to avoid having any of them change
the sheet. I am the one passwording the sheet.

---
Message posted from http://www.ExcelForum.com/


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I forget the password of protecting sheet, I need to unprotect it khalid[_2_] Excel Discussion (Misc queries) 1 November 17th 07 09:55 AM
Hide cell formula without password protecting sheet checkQ Excel Discussion (Misc queries) 4 October 9th 07 02:13 AM
password protecting a column for data entry in a sheet, how? kashi Excel Worksheet Functions 1 June 26th 07 03:09 AM
Excel (Office 2007 B2TR) -- Password Protecting A Sheet -- Character Limit ? Office2007B2TR_Tester_91311 Excel Discussion (Misc queries) 2 October 12th 06 07:08 PM
Sheet Protecting password Nick Excel Discussion (Misc queries) 1 June 30th 05 12:43 AM


All times are GMT +1. The time now is 01:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"