Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi I have a spreadsheet called MasterSheet.xls
In this sheet is a button with the code below attached. On clicking the button it should copy cell E1 in "Mastersheet.xls" (which it does) and copy the value into spreadsheet called "Dummy Rates.xls" under Sheet "ITS GB" However it comes up with an Error saying 'Subscript out of Range'. If I take out the line 'Sheets("ITS GB").Select' Then the code works but will only paste in the active sheet. Any ideas? Cheers Sub Rectangle6() Range("E1").Select Selection.Copy Workbooks.Open Filename:= _ "J:\Dummy Rates.xls" _ , UpdateLinks:=3 Sheets("ITS GB").Select Range("G5").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to keep superscript and subscript when copying formula to anot | Excel Discussion (Misc queries) | |||
How can I automatically copy cell contents from one cell into anot | New Users to Excel | |||
Subscript out of range problem | Excel Programming | |||
Subscript out of range problem | Excel Programming | |||
Excel Macro Problem, Add-in need to work in every workbook & Error:9 Subscript out of range | Excel Programming |