Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I have the following code which should copy certain ranges from workbook 'Remittance Procedure Form Template Test' to 'Remittance Template' but it keeps coming up with the error Subscript out of Range. Can anyone help? Sub Copy_to_Template() Set outfile = Workbooks("C:\Documents and Settings\ThoemmE1\Desktop\Remittance Project\Remittance Template.xls") Workbooks("Remittance Procedure Form Template Test").Activate Worksheets("92212353").Activate Range("b1").Copy Destination:=outfile.Range("b6") Range("a1:a5").Copy Destination:=outfile.Range("a16") Range("c1:c5").Copy Destination:=outfile.Range("b16") Range("d1:d5").Copy destinationL = outfile.Range("c16") 'outfile.Range("b10").Value = ActiveSheet.Name End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I enter formula sum(range+range)*0.15 sumif(range=3) | Excel Discussion (Misc queries) | |||
Cond. Format Data Bars of range based on values of another range | Excel Worksheet Functions | |||
Excel Addin:Setting the range to the Excel.Range object range prop | Excel Worksheet Functions | |||
formula to sort a range so that it matches the exact rows of a column that is outside that range? | Excel Discussion (Misc queries) | |||
how to? set my range= my UDF argument (range vs. value in range) [advanced?] | Excel Programming |