Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
adding values if the same - SUMIF in range of cells? | Excel Worksheet Functions | |||
adding comments to unprotected cell/range in protected worksheet | Excel Worksheet Functions | |||
Sum func. is adding cells not in specified range | Excel Worksheet Functions | |||
Adding colour to a range of cells based on one of the cells v... | Excel Discussion (Misc queries) | |||
sheets.range and adding cells that are out of the range | Excel Programming |