Spreadsheet thinks the same user is logged in no matter who is

cdwr0550

New Member
Joined
Aug 30, 2017
Messages
10
Office Version
  1. 365
Platform
  1. Windows
I created a spreadsheet with a VBA form. All works the way it is suppose to, however if anyone already has it open it and someone else opens it a message to open in read only appears( as it is suppose to). Which is not the problem. The problem is it does not matter who is logged into it always says that I am logged it in even tho my computer is off.


I am curious to what would cause this and is there a way to fix it. It would be handy to know who the actual user is logged in
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
How are you checking for the logged in user? If you're using a formula, you can only get the installed folder name which is "usually" the same as the logged in user. In VBA, you can pull enviromental variables which should give you the true logged in user.
 
Upvote 0
How are you checking for the logged in user? If you're using a formula, you can only get the installed folder name which is "usually" the same as the logged in user. In VBA, you can pull enviromental variables which should give you the true logged in user.
UserA (myprofile name)
UserB (other users profile name)

I am not using a formula. If userB is logged in and any other user tries to log in it says that userA has it locked for edting and to open it in read only.

This becomes a problem because if that person is currently logged in you have no way to know who is actually the user and notify them to exit the program
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,592
Members
449,089
Latest member
Motoracer88

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