ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Restoring Cell comments status (https://www.excelbanter.com/excel-programming/293257-restoring-cell-comments-status.html)

Barry Smith

Restoring Cell comments status
 
I have an application where I store a users preferences before I
remove menus and toolbars. I store these on a sheet on the wookbook.
When I close the spreadsheet and restore the user settings, I find
that comments are restored as all shown, or all not shown. When they
load a previous workbook that had some cell comments shown and some
not shown it now has all one or the other. How do you do this? Do I
not store the user preference?

A.W.J. Ales

Restoring Cell comments status
 
Barray,

As far as I know : Changing the checkbox in Tools / Options / tab View /
Comments ( None , Indicator only , Comment & Indicator) will change the
status of all the comments. You can then (per cell) change the status.
If you want to do this by VB : Range("A1").Comment.Visible = TRUE or FALSE
You can save/retrieve the status of all the comments by using the collection
of comments and loop through it.

--
Regards,
Auk Ales

* Please reply to this newsgroup only *
* I will not react on unsolicited e-mails *

"Barry Smith" wrote in message
om...
I have an application where I store a users preferences before I
remove menus and toolbars. I store these on a sheet on the wookbook.
When I close the spreadsheet and restore the user settings, I find
that comments are restored as all shown, or all not shown. When they
load a previous workbook that had some cell comments shown and some
not shown it now has all one or the other. How do you do this? Do I
not store the user preference?





All times are GMT +1. The time now is 10:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com