User forms in a Collaborative environment

Rebmit

New Member
Joined
Jan 20, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Good Morning,

I wonder if you can advise please? I have an excel workbook which has >100 sheets (one for each persons information) which is controlled from a User Form. All the sheets are hidden until the user clicks on their button on the user form. This function works well and as it is in a collaborative workspace all users can enter the file at the same time. However the issue is when someone else clicks on their button it changes the view for everyone. I want the the sheet the person opened to remain and not change when someone else click on another name. Hopefully that makes sense? The code i have for the persons button on the user form is.

VBA Code:
Private Sub CommandButton181_Click()
Worksheets("Rebmit").Visible = True
Worksheets("Home").Visible = True
Homeform.Hide
ExitForm.Show
Sheets("Remibt").Select
ActiveWindow.Zoom = 60
ActiveWindow.ScrollRow = 1 'the row you want to scroll to
ActiveWindow.ScrollColumn = 1 'the column you want to scroll to
'hides all the worksheets
Dim Wrksheet As Worksheet
For Each Wrksheet In ThisWorkbook.Worksheets
If Wrksheet.Name <> ThisWorkbook.ActiveSheet.Name Then
Wrksheet.Visible = xlSheetVeryHidden
End If
Next Wrksheet
End Sub


Im no expert so if there is any advise i would really appreciate it.

Regards

Reb
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,223,957
Messages
6,175,625
Members
452,661
Latest member
Nonhle

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