excel放在公共盘上,如何设置Excel, 可以使我指定的一部分用户可以修改,另外一部分用户只能只读,另外要求有修改权限的用户不需要密码就可以修改。
谢谢
如何设置EXCEL,可以使部分指定用户修改,另外一部分用户只读
答案:2 悬赏:10 手机版
解决时间 2021-02-12 16:33
- 提问者网友:做自己de王妃
- 2021-02-12 08:29
最佳答案
- 五星知识达人网友:鱼忧
- 2021-02-12 09:45
在公共盤设置共享目录的权限,可以修改的用户,设置成修改。只读的用户设置成只读
全部回答
- 1楼网友:第幾種人
- 2021-02-12 11:15
在2007里是审阅选项卡中,选择撤消工作表保护,可能需要密码;2003里是在工具选项卡中的保护选项里的撤工作表保护,同样可能需要密码。
=========================================
如果不知道密码,请用下面的方法撤消工作表保护。
\打开文件
2\工具---宏----录制新宏---输入名字如:aa
3\停止录制(这样得到一个空宏)
4\工具---宏----宏,选aa,点编辑按钮
5\删除窗口中的所有字符(只有几个),替换为下面的内容:(你复制吧)
option explicit
public sub allinternalpasswords()
' breaks worksheet and workbook structure passwords. bob mccormick
' probably originator of base code algorithm modified for coverage
' of workbook structure / windows passwords and for multiple passwords
'
' norman harker and je mcgimpsey 27-dec-2002 (version 1.1)
' modified 2003-apr-04 by jem: all msgs to constants, and
' eliminate one exit sub (version 1.1.1)
' reveals hashed passwords not original passwords
const dblspace as string = vbnewline & vbnewline
const authors as string = dblspace & vbnewline & _
"adapted from bob mccormick base code by" & _
"norman harker and je mcgimpsey"
const header as string = "allinternalpasswords user message"
const version as string = dblspace & "version 1.1.1 2003-apr-04"
const repback as string = dblspace & "please report failure " & _
"to the microsoft.public.excel.programming newsgroup."
const allclear as string = dblspace & "the workbook should " & _
"now be free of all password protection, so make sure you:" & _
dblspace & "save it now!" & dblspace & "and also" & _
dblspace & "backup!, backup!!, backup!!!" & _
dblspace & "also, remember that the password was " & _
"put there for a reason. don't stuff up crucial formulas " & _
"or data." & dblspace & "access and use of some data " & _
"may be an offense. if in doubt, don't."
const msgnopwords1 as string = "there were no passwords on " & _
"sheets, or workbook structure or windows." & authors & version
const msgnopwords2 as string = "there was no protection to " & _
"workbook structure or windows." & dblspace & _
"proceeding to unprotect sheets." & authors & version
const msgtaketime as string = "after pressing ok button this " & _
"will take some time." & dblspace & "amount of time " & _
"depends on how many different passwords, the " & _
"passwords, and your computer's specification." & dblspace & _
"just be patient! make me a coffee!" & authors & version
const msgpwordfound1 as string = "you had a worksheet " & _
"structure or windows password set." & dblspace & _
"the password found was: " & dblspace & "$$" & dblspace & _
"note it down for potential future use in other workbooks by " & _
"the same person who set this password." & dblspace & _
"now to check and clear other passwords." & authors & version
const msgpwordfound2 as string = "you had a worksheet " & _
"password set." & dblspace & "the password found was: " & _
dblspace & "$$" & dblspace & "note it down for potential " & _
"future use in other workbooks by same person who " & _
"set this password." & dblspace & "now to check and clear " & _
"other passwords." & authors & version
const msgonlyone as string = "only structure / windows " & _
"protected with the password that was just found." & _
allclear & authors & version & repback
dim w1 as worksheet, w2 as worksheet
dim i as integer, j as integer, k as integer, l as integer
dim m as integer, n as integer, i1 as integer, i2 as integer
dim i3 as integer, i4 as integer, i5 as integer, i6 as integer
dim pword1 as string
dim shtag as boolean, wintag as boolean
application.screenupdating = false
with activeworkbook
wintag = .protectstructure or .protectwindows
end with
shtag = false
for each w1 in worksheets
shtag = shtag or w1.protectcontents
next w1
if not shtag and not wintag then
msgbox msgnopwords1, vbinformation, header
exit sub
end if
msgbox msgtaketime, vbinformation, header
if not wintag then
msgbox msgnopwords2, vbinformation, header
else
on error resume next
do 'dummy do loop
for i = 65 to 66: for j = 65 to 66: for k = 65 to 66
for l = 65 to 66: for m = 65 to 66: for i1 = 65 to 66
for i2 = 65 to 66: for i3 = 65 to 66: for i4 = 65 to 66
for i5 = 65 to 66: for i6 = 65 to 66: for n = 32 to 126
with activeworkbook
.unprotect chr(i) & chr(j) & chr(k) & _
chr(l) & chr(m) & chr(i1) & chr(i2) & _
chr(i3) & chr(i4) & chr(i5) & chr(i6) & chr(n)
if .protectstructure = false and _
.protectwindows = false then
pword1 = chr(i) & chr(j) & chr(k) & chr(l) & _
chr(m) & chr(i1) & chr(i2) & chr(i3) & _
chr(i4) & chr(i5) & chr(i6) & chr(n)
msgbox application.substitute(msgpwordfound1, _
"$$", pword1), vbinformation, header
exit do 'bypass all for...nexts
end if
end with
next: next: next: next: next: next
next: next: next: next: next: next
loop until true
on error goto 0
end if
if wintag and not shtag then
msgbox msgonlyone, vbinformation, header
exit sub
end if
on error resume next
for each w1 in worksheets
'attempt clearance with pword1
w1.unprotect pword1
next w1
on error goto 0
shtag = false
for each w1 in worksheets
'checks for all clear shtag triggered to 1 if not.
shtag = shtag or w1.protectcontents
next w1
if shtag then
for each w1 in worksheets
with w1
if .protectcontents then
on error resume next
do 'dummy do loop
for i = 65 to 66: for j = 65 to 66: for k = 65 to 66
for l = 65 to 66: for m = 65 to 66: for i1 = 65 to 66
for i2 = 65 to 66: for i3 = 65 to 66: for i4 = 65 to 66
for i5 = 65 to 66: for i6 = 65 to 66: for n = 32 to 126
.unprotect chr(i) & chr(j) & chr(k) & _
chr(l) & chr(m) & chr(i1) & chr(i2) & chr(i3) & _
chr(i4) & chr(i5) & chr(i6) & chr(n)
if not .protectcontents then
pword1 = chr(i) & chr(j) & chr(k) & chr(l) & _
chr(m) & chr(i1) & chr(i2) & chr(i3) & _
chr(i4) & chr(i5) & chr(i6) & chr(n)
msgbox application.substitute(msgpwordfound2, _
"$$", pword1), vbinformation, header
'leverage finding pword by trying on other sheets
for each w2 in worksheets
w2.unprotect pword1
next w2
exit do 'bypass all for...nexts
end if
next: next: next: next: next: next
next: next: next: next: next: next
loop until true
on error goto 0
end if
end with
next w1
end if
msgbox allclear & authors & version & repback, vbinformation, header
end sub
6\关闭编辑窗口
7\工具---宏-----宏,选allinternalpasswords,运行,确定两次,等2分钟,再确定.ok,没有密码了
=====================================
这个方法只适用于03版的
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯