PC Review


Reply
Thread Tools Rate Thread

Add a comment on cell content change with VBA

 
 
Les
Guest
Posts: n/a
 
      28th Feb 2008
Hello all, i have a spreadsheet that is protected and shared. When the
user logs in it "unlocks" a certain range of cells for him to update.
I would like to insert a comment when he/she updates the cell, but the
worksheet "Change" function does not work if it is shared & protected.
Is there a way around this ??
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      28th Feb 2008
The worksheet_change event should still fire.

I bet you're trying to unprotect the worksheet, add the comment (a real comment
or just text in a different cell????), then reprotect the worksheet.

If that's correct, then you've seen that you can't change the worksheet
protection of a shared workbook.



Les wrote:
>
> Hello all, i have a spreadsheet that is protected and shared. When the
> user logs in it "unlocks" a certain range of cells for him to update.
> I would like to insert a comment when he/she updates the cell, but the
> worksheet "Change" function does not work if it is shared & protected.
> Is there a way around this ??


--

Dave Peterson
 
Reply With Quote
 
Les
Guest
Posts: n/a
 
      28th Feb 2008

Hi Dave, yes that is what i am trying to do.

I am trying to put in the real comment as to who did the change.

Is there a way to do this ??


On Feb 28, 4:37*pm, Dave Peterson <peter...@verizonXSPAM.net> wrote:
> The worksheet_change event should still fire.
>
> I bet you're trying to unprotect the worksheet, add the comment (a real comment
> or just text in a different cell????), then reprotect the worksheet.
>
> If that's correct, then you've seen that you can't change the worksheet
> protection of a shared workbook.
>
> Les wrote:
>
> > Hello all, i have a spreadsheet that is protected and shared. When the
> > user logs in it "unlocks" a certain range of cells for him to update.
> > I would like to insert a comment when he/she updates the cell, but the
> > worksheet "Change" function does not work if it is shared & protected.
> > Is there a way around this ??

>
> --
>
> Dave Peterson


 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      28th Feb 2008
You can protect the worksheet, but allow the user to edit objects (including
Comments and other objects). If you have pictures/buttons/comboboxes..., then
these will be unprotected, too.

In xl2003 menus:
Unshare the workbook
Unprotect the worksheet
reprotect the worksheet: Tools|Protection|protect sheet, but check the "edit
objects" under the Allow all users of this worksheet to" box.
Share the workbook

and test it out.



Les wrote:
>
> Hi Dave, yes that is what i am trying to do.
>
> I am trying to put in the real comment as to who did the change.
>
> Is there a way to do this ??
>
> On Feb 28, 4:37 pm, Dave Peterson <peter...@verizonXSPAM.net> wrote:
> > The worksheet_change event should still fire.
> >
> > I bet you're trying to unprotect the worksheet, add the comment (a real comment
> > or just text in a different cell????), then reprotect the worksheet.
> >
> > If that's correct, then you've seen that you can't change the worksheet
> > protection of a shared workbook.
> >
> > Les wrote:
> >
> > > Hello all, i have a spreadsheet that is protected and shared. When the
> > > user logs in it "unlocks" a certain range of cells for him to update.
> > > I would like to insert a comment when he/she updates the cell, but the
> > > worksheet "Change" function does not work if it is shared & protected.
> > > Is there a way around this ??

> >
> > --
> >
> > Dave Peterson


--

Dave Peterson
 
Reply With Quote
 
Les
Guest
Posts: n/a
 
      28th Feb 2008
Thanks Dave, much appreciated.



On Feb 28, 6:46*pm, Dave Peterson <peter...@verizonXSPAM.net> wrote:
> You can protect the worksheet, but allow the user to edit objects (including
> Comments and other objects). *If you have pictures/buttons/comboboxes..., then
> these will be unprotected, too.
>
> In xl2003 menus:
> Unshare the workbook
> Unprotect the worksheet
> reprotect the worksheet: *Tools|Protection|protect sheet, but check the "edit
> objects" under the Allow all users of this worksheet to" box.
> Share the workbook
>
> and test it out.
>
>
>
>
>
> Les wrote:
>
> > Hi Dave, yes that is what i am trying to do.

>
> > I am trying to put in the real comment as to who did the change.

>
> > Is there a way to do this ??

>
> > On Feb 28, 4:37 pm, Dave Peterson <peter...@verizonXSPAM.net> wrote:
> > > The worksheet_change event should still fire.

>
> > > I bet you're trying to unprotect the worksheet, add the comment (a real comment
> > > or just text in a different cell????), then reprotect the worksheet.

>
> > > If that's correct, then you've seen that you can't change the worksheet
> > > protection of a shared workbook.

>
> > > Les wrote:

>
> > > > Hello all, i have a spreadsheet that is protected and shared. When the
> > > > user logs in it "unlocks" a certain range of cells for him to update..
> > > > I would like to insert a comment when he/she updates the cell, but the
> > > > worksheet "Change" function does not work if it is shared & protected.
> > > > Is there a way around this ??

>
> > > --

>
> > > Dave Peterson

>
> --
>
> Dave Peterson- Hide quoted text -
>
> - Show quoted text -


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert From Comment to Cell Content Sue Microsoft Excel Misc 1 19th Mar 2010 01:26 PM
Comment value from cell content Creamegg Microsoft Excel Discussion 4 18th Jul 2008 06:56 AM
Converting cell content into comment Akash Microsoft Excel Programming 9 4th Sep 2007 01:51 PM
Converting cell content into comment Akash Maheshwari Microsoft Excel Misc 2 4th Sep 2007 07:48 AM
copy comment content to cell content as data not as comment =?Utf-8?B?TGlsYWNo?= Microsoft Excel Misc 2 21st Jun 2007 12:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:36 PM.