Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default problem in watching the comments tags when making protection to sheet

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default problem in watching the comments tags when making protection to sh

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"

"thread" wrote:

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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default problem in watching the comments tags when making protection to sh

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 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"

"thread" wrote:

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



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default problem in watching the comments tags when making protection t

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.

"thread" wrote:

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 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"

"thread" wrote:

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




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default problem in watching the comments tags when making protection t

Hi,
i found a solution in the protected command:
objectview=false
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.

"thread" wrote:

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 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"

"thread" wrote:

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





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
Sheet protection problem carl Excel Discussion (Misc queries) 1 March 18th 09 10:15 PM
Calendar problem with sheet protection? DORI Excel Programming 2 December 10th 05 04:46 AM
Making comments apply to more than one cell Evelyn Excel Discussion (Misc queries) 2 February 9th 05 12:08 AM
Bill is watching your posts AlanDavidson Excel Programming 8 May 14th 04 02:43 PM
sheet protection problem Deer Hunter Excel Programming 2 August 13th 03 10:47 AM


All times are GMT +1. The time now is 10:55 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"