Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Sub to write cell contents into its own comment

I would select a range of cells, then run the sub to write each cell's
content into its own comment. The sub to do nothing for any cell within the
selection which is blank. For cells which contain formulas, to write the
returned values into the comment. Thanks for insights
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Sub to write cell contents into its own comment

Try the below

Sub Macro()
On Error Resume Next
For Each cell In Selection
If cell.Text < "" Then _
cell.AddComment cell.Text
Next
End Sub


If this post helps click Yes
---------------
Jacob Skaria


"Max" wrote:

I would select a range of cells, then run the sub to write each cell's
content into its own comment. The sub to do nothing for any cell within the
selection which is blank. For cells which contain formulas, to write the
returned values into the comment. Thanks for insights

  #3   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Sub to write cell contents into its own comment

Fantastic! Works great, Jacob. Thanks
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
CELL CONTENTS WRITE TO TAB NAME Pam M Excel Worksheet Functions 0 May 27th 10 10:55 PM
CELL CONTENTS WRITE TO TAB NAME Jacob Skaria Excel Worksheet Functions 0 May 27th 10 10:47 PM
Macro to copy cell contents to comment RichUE Excel Programming 2 March 3rd 09 10:30 AM
VBA - Passing Cell Contents Into Comment ajocius[_9_] Excel Programming 13 July 30th 05 11:50 PM
convert cell contents into a comment Paul hunter Excel Programming 5 August 21st 04 09:47 AM


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