Setting Zoom according to User on a network

  • Thread starter Thread starter Corey
  • Start date Start date
C

Corey

Is it possible to set a Zoom level when opening a workbook, but the user on
a network?

How can i code it if able?
 
this may work:

Private Sub Worksheet_Activate()
If UCase(Environ("UserName")) = "COREY" Then ' put the login name here
ActiveWindow.Zoom = 85
Else

ActiveWindow.Zoom = 100
End If

End Sub
 
Thanks for the reply Gary.

I placed that code in a worksheet with the user name as placed in the
excel - Tools - Options - General Tab - User "xxx xxxx",
but it seems to not register the name as the user.

Is that how you can diplay the user name ?

Corey
--
Regards

Corey
Gary Keramidas said:
this may work:

Private Sub Worksheet_Activate()
If UCase(Environ("UserName")) = "COREY" Then ' put the login name here
ActiveWindow.Zoom = 85
Else

ActiveWindow.Zoom = 100
End If

End Sub
 
Environ("UserName") is the login name the person used to login to the network,
not the excel username. try that and see what happens

--


Gary


Corey said:
Thanks for the reply Gary.

I placed that code in a worksheet with the user name as placed in the excel -
Tools - Options - General Tab - User "xxx xxxx",
but it seems to not register the name as the user.

Is that how you can diplay the user name ?

Corey
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

IPad remote 10
adjust zoom according to sheet 3
Set Zoom Level in Auto-Open Macro? 2
Already Zoomed Out as Far as Possible 0
Zoom in/Zoom out picture 1
PageSetup.Zoom=TRUE 3
Chart zoom 1
Tab Code Retrieve a Value 3

Back
Top