Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
paste special / skip empty cells doesn't work!? | Excel Worksheet Functions | |||
how do I select, cut, and paste visible cells only | Excel Discussion (Misc queries) | |||
Accessing Cells in Separate Worksheet | Excel Discussion (Misc queries) | |||
formula references vertical cells in a separate worksheet | Excel Worksheet Functions | |||
paste special | values should work with merged cells | Excel Discussion (Misc queries) |