Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a worksheet in FileA and I want to copy it to the range from R1 to X10
of FileB by using VBA. Could someone please show me the procedures. By the way, shall I activate / open FileB before copying. Many Thanks |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Workbooks("FileA.xls").worksheets("Sheet1").range( "R1:X10").copy
Destination:= _ Workbooks("FileB.xls").worksheets("Sheet1").range( "R1:X10") Adjust the first range ("R1:X10") to reflect the range you are actually copying. Same for both filenames and Sheet names "AlanW" wrote: I have a worksheet in FileA and I want to copy it to the range from R1 to X10 of FileB by using VBA. Could someone please show me the procedures. By the way, shall I activate / open FileB before copying. Many Thanks |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try turning on the macro recorder when you do it manually.
You'll see code that works. AlanW wrote: I have a worksheet in FileA and I want to copy it to the range from R1 to X10 of FileB by using VBA. Could someone please show me the procedures. By the way, shall I activate / open FileB before copying. Many Thanks -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I copy a excel file into a InDesign file correctly? | Excel Discussion (Misc queries) | |||
copy the same raws of all sheets from about a 100 file to a new sheet of a book and save the file | Setting up and Configuration of Excel | |||
EXCEL FILE a copy/a copy/a copy ....filename | New Users to Excel | |||
copy excell file to a CSV file and than to Notepad | Excel Discussion (Misc queries) | |||
copy/paste from one file to another without file name reference | Excel Discussion (Misc queries) |