problem in watching the comments tags when making protection to sheet

  • Thread starter Thread starter thread
  • Start date Start date
T

thread

Hi all,
i'm populate data to an excel file and i active protaction sheet
one of the problem that i cannot figure out is how can i make the
comments appear during the protection as well
 
Are you adding the comment with VB ?
I obtained this code by simply recording a macro and this is what was
generated. It should give you an idea of how to add to your code.

Range("C7").Select
Range("C7").AddComment
Range("C7").Comment.Visible = False
Range("C7").Comment.Text Text:= _
"This is a test of how to add a comment to a cell"
 
the problem is not making the comments as its already there,
the problem is that the comments are not visible when the sheet is
protected
Rich J כתב:
 
Are the comments you are referring attached to a cell and have the red
triangle in the corner and appear when you pass the cursor over them ?
I'm not sure what the protection has to do with seeing them. If you want
them visible automatically then put this line in for each comment you want
visible when the macro is run -

Range("C7").Comment.Visible = True

You will need another macro with all set to False to hide them.
 
Hi,
i found a solution in the protected command:
objectview=false
Rich J כתב:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top