Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Viewing an Excel Worksheet as a Form only... 1

Status
Not open for further replies.

deevaetodin

Technical User
Jun 22, 2001
80
US
Was wondering if anyone could explain how I can adjust the options of a worksheet in an excel workbook so that all the user that access' that worksheet has access to are the form controls?

Is there a certain way that I need to protect the worksheet so that the user cannot navigate throughout the cells.

I would like to make somewhat similar to an HTML form within the workbook.

Thanks in advance for any help.
 
When you start the worksheet:

Private Sub Worksheet_Activate()
yourform.Show
End Sub

When you close the form:

Private Sub UserForm_Deactivate()
Workbooks("YourWorkbooj=k").Close SaveChanges:=True
End Sub
 
Thank you very much.

Last question.

How do I get the code to run automatically when the worksheet is accessed or opened.

Is this possible?

Thanks again....
 
I simply share my Excel forms allowing multiple users to make changes at the same time and place them in a read-only directory in the server and have users copy them from there. But VBA works just fine also.

"The reward of one duty done is the power to fulfill another"
<%
Jr_Clown@Yahoo.com
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top