Go Back   Talk Microsoft > Microsoft Operating Systems & Software > Microsoft Office Family

Reply
     Microsoft Excel Help?  
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-29-2008, 05:19 PM
Junior Member
 
Join Date: Jan 2008
Posts: 5
Default Microsoft Excel Help?

I have saved an excel file.
I am talking about Sheet1 only.
There are values and formullas in cells of Sheet1.
File is not password protected nor do I want to protect it.
I want......
1. When any cell is selected by someone , and edited to a new value

It should automatically cancel the changes and bring back the last value in the cell which can be a formulla or a text/number.

And then pop us a message box with ok button, that changes on this cell is not allowed.

Need to use VB only, no tools.

Thanks in advance
Reply With Quote
Links
  #2 (permalink)  
Old 07-29-2008, 05:19 PM
Junior Member
 
Join Date: Jul 2008
Posts: 3
Default

use the "after update" event handler and do the code in macro

if (cellA1.value <> actualValue) then
select.cell("A1")
activecell.formulaR1C1=actualValue
msgbox("Changes on this cell is not allowed")
end if

something like this
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



All times are GMT -4. The time now is 03:30 PM.