Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Adding comments in a range (!) of cells

How can I add comments to a range of cells by one (or a few) VBA commands?

I'm having a list of 10000 strings which I need to add as a comment to A1
to A10000. If I add them one after the other it takes about a minute - too
long to wait for.

But I did'nt find a way to insert them in one go. Can I do this like
transfering of an array to a range of cells? This takes just milliseconds.

Thanks - Reinhard


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Adding comments in a range (!) of cells

Not unless you have them already entered properly on another sheet. If you
do, then you could probably copy and paste them. Look at Edit=Paste
Special

--
Regards,
Tom Ogilvy

"Reinhard F. Bentrup" wrote in message
...
How can I add comments to a range of cells by one (or a few) VBA commands?

I'm having a list of 10000 strings which I need to add as a comment to A1
to A10000. If I add them one after the other it takes about a minute - too
long to wait for.

But I did'nt find a way to insert them in one go. Can I do this like
transfering of an array to a range of cells? This takes just milliseconds.

Thanks - Reinhard




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Adding comments in a range (!) of cells

Okay, I copy & paste special works fine.

Do I understand you right that I will be able to add all my comments on
another (new) sheet and then copy&paste?

I need to create my comments by VBA so I do not have them already on a
sheet.

Regards,

Reinhard

"Tom Ogilvy" schrieb im Newsbeitrag
...
Not unless you have them already entered properly on another sheet. If

you
do, then you could probably copy and paste them. Look at Edit=Paste
Special

--
Regards,
Tom Ogilvy

"Reinhard F. Bentrup" wrote in message
...
How can I add comments to a range of cells by one (or a few) VBA

commands?

I'm having a list of 10000 strings which I need to add as a comment to

A1
to A10000. If I add them one after the other it takes about a minute -

too
long to wait for.

But I did'nt find a way to insert them in one go. Can I do this like
transfering of an array to a range of cells? This takes just

milliseconds.

Thanks - Reinhard






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Adding comments in a range (!) of cells

I said if you have your comments on another sheet you can use copy and paste
special. If you don't then you will have to loop through and add them as
you are doing now. There is no way to paste or assign an array of comments
or anything similar to that that I am aware of.

--
Regards,
Tom Ogilvy

"Reinhard F. Bentrup" wrote in message
...
Okay, I copy & paste special works fine.

Do I understand you right that I will be able to add all my comments on
another (new) sheet and then copy&paste?

I need to create my comments by VBA so I do not have them already on a
sheet.

Regards,

Reinhard

"Tom Ogilvy" schrieb im Newsbeitrag
...
Not unless you have them already entered properly on another sheet. If

you
do, then you could probably copy and paste them. Look at Edit=Paste
Special

--
Regards,
Tom Ogilvy

"Reinhard F. Bentrup" wrote in message
...
How can I add comments to a range of cells by one (or a few) VBA

commands?

I'm having a list of 10000 strings which I need to add as a comment

to
A1
to A10000. If I add them one after the other it takes about a minute -

too
long to wait for.

But I did'nt find a way to insert them in one go. Can I do this like
transfering of an array to a range of cells? This takes just

milliseconds.

Thanks - Reinhard








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
adding values if the same - SUMIF in range of cells? Eisaz Excel Worksheet Functions 4 November 18th 08 05:05 AM
adding comments to unprotected cell/range in protected worksheet gone fishing Excel Worksheet Functions 0 February 8th 06 10:06 PM
Sum func. is adding cells not in specified range Big Daddy Excel Worksheet Functions 1 July 14th 05 08:36 PM
Adding colour to a range of cells based on one of the cells v... McKenna Excel Discussion (Misc queries) 4 March 11th 05 02:25 PM
sheets.range and adding cells that are out of the range Phillips Excel Programming 1 November 18th 03 09:27 PM


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