Forum Discussion
Nizar850
Jan 01, 2023Copper Contributor
User level sharing
I want to share work book with different users in my office but each one should be able to view his sheet only and an admin to be able to see all the sheets, is that possible? please help.
- Jan 02, 2023
Without knowing how your network is set up, your error message is probably due to missing permissions.
First I would see if the user accepted all macros and contents of the file.
You could also try adding the affected account to the Administrators group and make sure it is given full control to the affected folder.
If everyone can't open the file, check your network's Information Rights Management (IRM).
Other approach:
Steps to take to allow VBA macros to run in files that you trust
How you allow VBA macros to run in files that you trust depends on where those file/s are located or the type of file.
Please keep in mind, networking and VBA is a painful story in itself. The topic is very extensive and getting a ready-made solution in VBA is rather unlikely. Very often a lot of computing power is required. In my humble opinion, VBA is totally unsuitable for this for several reasons. If there is some code in the network with Excel, I would rather recommend Office Script. But there are also limitations depending on the Excel version.
Here is some additional information without VBA that could possibly be used as a workaround.
Protection and security in Excel
Collaborate on Excel workbooks at the same time with co-authoring
I can imagine that a lot of information and possible errors can be very irritating :)).
But my knowledge of networks and VBA is also limited, hence this flood of information.
However, to include VBA in the network, I recommend adding the administrator because he knows best how the network is set up and what software and version the users use.
Thank you for your understanding and patience
I know I don't know anything (Socrates)
Nizar850
Jan 02, 2023Copper Contributor
Thank you, I tried with a VBA controlled file for the same purpose and it works fine with me only but when i share them to others it doesnt work, the message "You have no permission to open this file please contact admin" comes. below is the Exce version and operating system, and the file is stored in a network location.
Thanks,
Nizar
windows 10 Pro
Microsoft 365 version 2211
Thanks,
Nizar
windows 10 Pro
Microsoft 365 version 2211
NikolinoDE
Jan 02, 2023Gold Contributor
Without knowing how your network is set up, your error message is probably due to missing permissions.
First I would see if the user accepted all macros and contents of the file.
You could also try adding the affected account to the Administrators group and make sure it is given full control to the affected folder.
If everyone can't open the file, check your network's Information Rights Management (IRM).
Other approach:
Steps to take to allow VBA macros to run in files that you trust
How you allow VBA macros to run in files that you trust depends on where those file/s are located or the type of file.
Please keep in mind, networking and VBA is a painful story in itself. The topic is very extensive and getting a ready-made solution in VBA is rather unlikely. Very often a lot of computing power is required. In my humble opinion, VBA is totally unsuitable for this for several reasons. If there is some code in the network with Excel, I would rather recommend Office Script. But there are also limitations depending on the Excel version.
Here is some additional information without VBA that could possibly be used as a workaround.
Protection and security in Excel
Collaborate on Excel workbooks at the same time with co-authoring
I can imagine that a lot of information and possible errors can be very irritating :)).
But my knowledge of networks and VBA is also limited, hence this flood of information.
However, to include VBA in the network, I recommend adding the administrator because he knows best how the network is set up and what software and version the users use.
Thank you for your understanding and patience
I know I don't know anything (Socrates)