Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I would like to create a function, wich can insert a range into a woorksheet, CopyRange(sourceRange, destination) But I don's know how, any help ? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
One line will do it Worksheets("mysheet1").Range("A1:B10").Copy Destination:=Worksheets("mysheet2").Range("A1") Or as a sub Sub CopyIt(SourceRange as Range, DestinationRange as Range) SourceRange.Copy Destination:=DestinationRange End Sub which you would use as Set Range1 = Worksheets("mysheet1").Range("A1:B10") Set Range2 = Worksheets("mysheet2").Range("A1") CopyIt Range1, Range2 Make sure destinationRange is one cell though. regards Paul On May 25, 10:31 am, firsttimer wrote: Hello, I would like to create a function, wich can insert a range into a woorksheet, CopyRange(sourceRange, destination) But I don's know how, any help ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy data while skipping a predetermined number of cells | Excel Worksheet Functions | |||
predetermined answer in next cell | Excel Worksheet Functions | |||
Copy Function Without Range Update | Excel Worksheet Functions | |||
Counting cells base on a predetermined range | Excel Worksheet Functions | |||
Range COPY function - how to copy VALUES and not formulas | Excel Programming |