Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Select an array of cells and paste to separate worksheet - 2nd post - 1st didn't work!!

Help for a novice please!!

On the active worksheet I want to be able to select a single cell and then
assign a macro (that I will run from CTRL A) to select an array of cells
that is 26 columns wide by 27 rows deep from that single cell) and copy that
selection to a worksheet entitled "outlet summary" to cell A12.:Z38.

e.g. I select cell A435 on the active sheet and when I press ctrl A it will
copy the array of cells ref A435:Z461 (i.e. 26 columns by 27 rows where the
cell selected is top left cell) to worksheet "outlet summary" into cells
A12:Z38.

I know this is probably very simple but I am struggling to identify the cell
reference of the selected cell in VBA.

Would very much appreciate some help.

Thanks in anticipation.




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Select an array of cells and paste to separate worksheet - 2nd post - 1st didn't work!!

ActiveCell.Resize(27,26).copy Destination:= _
Worksheets("outlet summary").Range("A12")

--
Regards,
Tom Ogilvy


"Lee Wold" wrote in message
...
Help for a novice please!!

On the active worksheet I want to be able to select a single cell and then
assign a macro (that I will run from CTRL A) to select an array of cells
that is 26 columns wide by 27 rows deep from that single cell) and copy

that
selection to a worksheet entitled "outlet summary" to cell A12.:Z38.

e.g. I select cell A435 on the active sheet and when I press ctrl A it

will
copy the array of cells ref A435:Z461 (i.e. 26 columns by 27 rows where

the
cell selected is top left cell) to worksheet "outlet summary" into cells
A12:Z38.

I know this is probably very simple but I am struggling to identify the

cell
reference of the selected cell in VBA.

Would very much appreciate some help.

Thanks in anticipation.






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
paste special / skip empty cells doesn't work!? Ivica TypeR Excel Worksheet Functions 3 July 10th 07 04:53 PM
how do I select, cut, and paste visible cells only Cutting and pasting invisible cells. Excel Discussion (Misc queries) 2 May 10th 06 09:55 PM
Accessing Cells in Separate Worksheet mrjeffy321 Excel Discussion (Misc queries) 3 January 19th 06 11:58 PM
formula references vertical cells in a separate worksheet laralea Excel Worksheet Functions 3 January 11th 06 02:50 PM
paste special | values should work with merged cells PastingSpecial Excel Discussion (Misc queries) 1 June 20th 05 06:51 PM


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