If you want to tie it to the WORKSTATION, then here's what I'd suggest:

First, send him a file that contains the macro:

Sub auto_open()
    If (Sheets(1).Range("A1").Value = "") Then Range("A1").Value = 
Environ$("computername")
End Sub

and have him save it and return it to you
(that will give you his workstation "computer name")

then,

in your file, create an Auto_Open macro
or a Workbook_Open event macro and use something like:

If (Environ$("computername") = "xxx") Then
        Sheets(3).Visible = True
        Sheets(4).Visible = True
End If


Now, if you want it to run as long as it's HIM, regardless of the workstation, 
then
you could do something similar with his userid.

Paul
-----------------------------------------
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-----------------------------------------




________________________________
From: TAschefler <river...@hotmail.com>
To: MS EXCEL AND VBA MACROS <excel-macros@googlegroups.com>
Sent: Mon, November 14, 2011 8:49:44 AM
Subject: $$Excel-Macros$$ Open Worksheet if Filepath verified

I have an excel file that I want to give to an employee that will only
run if it is on their computer. I am looking for a macro that would
show perhaps an introduction page and if the file name/path matches
maybe a cell on the introduction page then it will unhide the (3
sheets) that the employees needs.  Any help will be appreciated.
Thanks.

-- 
FORUM RULES (934+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 


NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------

To post to this group, send email to excel-macros@googlegroups.com

-- 
FORUM RULES (934+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to