#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default read only cell

Is there a macro that I can wright that would make a cell read only on a form
after date entry has been performed in the cell? The intent is to have the
initiator of a form complete fields/cells on the form that will become read
only after the initiator has completed the form and save the form and then
email the form to the next approver. The next approver should not be able
to make changes to the content of the initial form that was submitted to the
next approver that the initiator emailed to the approver. Any help that you
could provide would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default read only cell

Hi,

You would want to use a Worksheet_Change event to handle this, the details
would be dependent on your worksheet and we would need a lot more details.

The above event can be found as follows
1. Press Alt+F11
2. In the Projects window at the top left of the VBE expand the list under
your file name.
3. Double-click the sheet that the code would be working on, for example
Sheet1
4. On the top left side of the code window is a object drop down open it and
choose Worksheet
5. On the top right side of the code window is a procedure drop down, open
it and choose Change.
Into this even you will add code that does whatever you need.
Note that some of what you need might be handled under Tools, Protection,
Allow Users to Edit Range. In fact you might be able to use this feature
without the need for a macro, just depends on exactly what you are trying to
do. For example if User 1 doesn't enter something is User 2 allows to enter
into that area. Or does each user have only their cells to work with?
--
Thanks,
Shane Devenshire


"pdaws" wrote:

Is there a macro that I can wright that would make a cell read only on a form
after date entry has been performed in the cell? The intent is to have the
initiator of a form complete fields/cells on the form that will become read
only after the initiator has completed the form and save the form and then
email the form to the next approver. The next approver should not be able
to make changes to the content of the initial form that was submitted to the
next approver that the initiator emailed to the approver. Any help that you
could provide would be greatly appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default read only cell

Thanks ShaneDevenshire, The following is the scenario:

1) User 1 completes the form and forwards the form to User 2 to approve.
2) User 2 just reviews the form that User 1 completed and clicks the approve
button on the bottom of the form.
3) User 2 should not be able to make any edits to the information that User
1 entered on the form.

I would like to know if there is a way to accomplish this? Thanks.

"ShaneDevenshire" wrote:

Hi,

You would want to use a Worksheet_Change event to handle this, the details
would be dependent on your worksheet and we would need a lot more details.

The above event can be found as follows
1. Press Alt+F11
2. In the Projects window at the top left of the VBE expand the list under
your file name.
3. Double-click the sheet that the code would be working on, for example
Sheet1
4. On the top left side of the code window is a object drop down open it and
choose Worksheet
5. On the top right side of the code window is a procedure drop down, open
it and choose Change.
Into this even you will add code that does whatever you need.
Note that some of what you need might be handled under Tools, Protection,
Allow Users to Edit Range. In fact you might be able to use this feature
without the need for a macro, just depends on exactly what you are trying to
do. For example if User 1 doesn't enter something is User 2 allows to enter
into that area. Or does each user have only their cells to work with?
--
Thanks,
Shane Devenshire


"pdaws" wrote:

Is there a macro that I can wright that would make a cell read only on a form
after date entry has been performed in the cell? The intent is to have the
initiator of a form complete fields/cells on the form that will become read
only after the initiator has completed the form and save the form and then
email the form to the next approver. The next approver should not be able
to make changes to the content of the initial form that was submitted to the
next approver that the initiator emailed to the approver. Any help that you
could provide would be greatly appreciated.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need the cell to read 0 Peter Excel Discussion (Misc queries) 8 June 1st 08 09:11 PM
How to read the value of a cell Hell-fire[_3_] Excel Worksheet Functions 17 September 5th 07 09:10 AM
CAN YOU SET GRAPH TO READ, FORMULA IN A CELL AS A BLANK CELL AJ-foster Excel Discussion (Misc queries) 2 July 15th 06 08:34 AM
How can a file be converted from Read-Only to Read/Write Jim in Apopka Excel Discussion (Misc queries) 2 November 19th 05 04:59 PM
"read only" cell in a given worksheet Colin2u Excel Discussion (Misc queries) 2 July 29th 05 04:33 PM


All times are GMT +1. The time now is 01:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"