Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copying and pasting not adjecent cells

I have an excel sheet that performs a calculation on a huge amount of
data. The solutions eventually end up in not adjecent cells (like A23,
D12, F56...) Now I would like to make a database in another sheet, but
if I just paste the data it ends up all over the sheet. Is there a way
to paste the data to adjecent cells?
Array's perhaps? Can anybody help?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default copying and pasting not adjecent cells

How do you know what cells you want to copy? Is it always
A23, D12 etc?

If it is and these cells form a grid then you can name them and
copy the named range and paste to the single area you want.
If the cells you want to copy are not able to be made into a
regular shaped are (a rectangle) then you cannot copy them
as one area. If you do not follow that then think of it like this:
Can you select all the cells you want as a single area by hiding
whole rows and whole columns? If you can then your area
can be copied as a single area.

Another way would be to have an extra sheet which has, in the
shape you want the results, formulas which point to the cells
you want them to show then copy this area and paste it to the
new area. That way the copied area is the shape you want.

Chrissy.

"nick" wrote in message om...
I have an excel sheet that performs a calculation on a huge amount of
data. The solutions eventually end up in not adjecent cells (like A23,
D12, F56...) Now I would like to make a database in another sheet, but
if I just paste the data it ends up all over the sheet. Is there a way
to paste the data to adjecent cells?
Array's perhaps? Can anybody help?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default copying and pasting not adjecent cells

rw = 2
icol = 1
for each cell in Range("A23,D1,F56")
cell.copy Destination = worksheets("Sheet2").Cells(rw,icol)
icol = icol + 1
Next

as an example

--
Regards,
Tom Ogilvy

"nick" wrote in message
om...
I have an excel sheet that performs a calculation on a huge amount of
data. The solutions eventually end up in not adjecent cells (like A23,
D12, F56...) Now I would like to make a database in another sheet, but
if I just paste the data it ends up all over the sheet. Is there a way
to paste the data to adjecent cells?
Array's perhaps? Can anybody help?



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
Pasting Cells in Excel - Not copying all content colleen Excel Discussion (Misc queries) 1 July 15th 09 08:24 PM
Copying cell contents from many cells and pasting into one cell MDN Excel Discussion (Misc queries) 7 December 10th 07 08:56 PM
Copying and pasting to visible cells only FJ Excel Discussion (Misc queries) 4 November 17th 06 01:01 AM
keeping cells locked and protected when copying and pasting Lynne...... Excel Discussion (Misc queries) 0 June 19th 06 12:11 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 07:41 AM.

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"