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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,214,791
Messages
6,121,611
Members
449,038
Latest member
apwr

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