永发信息网

如何设置EXCEL,可以使部分指定用户修改,另外一部分用户只读

答案:2  悬赏:10  手机版
解决时间 2021-02-12 16:33
excel放在公共盘上,如何设置Excel, 可以使我指定的一部分用户可以修改,另外一部分用户只能只读,另外要求有修改权限的用户不需要密码就可以修改。
谢谢
最佳答案
在公共盤设置共享目录的权限,可以修改的用户,设置成修改。只读的用户设置成只读
全部回答
在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版的
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
最近高三感觉非常不好,想早上再写作业,但是
美丽一生美容养生会所(美丽一生化妆品店)怎么
【颜色什么】什么颜色的
在学信网上能查到自己的学历信息 这能说明啥
天鹅山国家森林公园地址在哪,我要去那里办事
好看的黑板报怎样快速的又好看的办出来啊??
勤的偏旁部首是什么
网银号码怎么改
1:快玩游戏盒有大型游戏吗; 2:快吧,快快
维纳斯美容养生会所地址在哪,我要去那里办事
干锅牛蛙怎么做好吃
曼莎肠道SPA馆地址好找么,我有些事要过去
家印象文化主题餐厅地址在哪,我要去那里办事
生活中的下列现象属于化学变化的是AA. 水果腐
MODULAR莫多拉管道式入户过滤器到底 好不好用
推荐资讯
山东省农鲁北物流有限公司(历亭路西50米山东
武城长吉货物仓储服务中心地址在什么地方,我
过年走亲戚拿的鱼能拿杀过的鱼吗
澳大利亚农牧业的主要产品为( )和( ),澳大利
海浪公园地址有知道的么?有点事想过去
武隆正宗土猪肉这个地址在什么地方,我要处理
【快乐的一天英文】""快乐的一天""英语怎么说
丰盛街在哪里啊,我有事要去这个地方
点菜柜是铜管的好还是铁管的好
九游游戏里激活码是什么意思
来庄村地址在什么地方,我要处理点事
Feiuakemn地址有知道的么?有点事想过去
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?