Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default pasting in cell comments

Hi,

Thanking you for any assistance in advance.

Can you please tell me if it is possible to use VBA to allow pasting into
cell comments. I am wanting to take info from one spreadsheet and insert it
as a cell comment in another.


Many regards


John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default pasting in cell comments

This should do it.

Sub comnt()
'assign cell value to a string variable
Range("a2").Select
Dim tst As String
tst = ActiveCell.Value
'apply variable to the desired location
Range("d2").NoteText tst

End Sub

"John Contact" wrote:

Hi,

Thanking you for any assistance in advance.

Can you please tell me if it is possible to use VBA to allow pasting into
cell comments. I am wanting to take info from one spreadsheet and insert it
as a cell comment in another.


Many regards


John

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default pasting in cell comments

Thanks DMoney, worked great

"DMoney" wrote:

This should do it.

Sub comnt()
'assign cell value to a string variable
Range("a2").Select
Dim tst As String
tst = ActiveCell.Value
'apply variable to the desired location
Range("d2").NoteText tst

End Sub

"John Contact" wrote:

Hi,

Thanking you for any assistance in advance.

Can you please tell me if it is possible to use VBA to allow pasting into
cell comments. I am wanting to take info from one spreadsheet and insert it
as a cell comment in another.


Many regards


John

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
Extract Cell Comments and Paste as text in a cell Goaliemenace Excel Worksheet Functions 3 October 19th 09 10:28 PM
Pasting into Excel comments Elucidate Excel Discussion (Misc queries) 1 August 10th 08 07:38 AM
Copying cell contents from many cells and pasting into one cell MDN Excel Discussion (Misc queries) 7 December 10th 07 08:56 PM
Need to add cell comments in unlocked cell on protected worksheet dan400man Excel Discussion (Misc queries) 3 December 16th 05 08:02 PM
Pasting on Filtered Data Sheets without pasting onto hidden cells CCSMCA Excel Discussion (Misc queries) 1 August 28th 05 01:22 PM


All times are GMT +1. The time now is 03:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"