Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try the following
Sub CopySelection() If Selection.Rows.Count < Rows.Count - Range("B" & Rows.Count).End(xlUp).Row Then Selection.Copy Range("B" & Rows.Count).End(xlUp).PasteSpecial Else MsgBox "Cannot paste selection - not enough rows" End If End Sub very easy to change this to an addin to you can have it as a button on toolbar for all spreadsheets - let me know if u need this. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
selecting a range | Excel Discussion (Misc queries) | |||
Please help with selecting a range | Excel Discussion (Misc queries) | |||
Selecting range in list of range names depending on a cell informa | Excel Discussion (Misc queries) | |||
Selecting a Range | Excel Discussion (Misc queries) | |||
Selecting a Worksheet Range | Excel Worksheet Functions |