I am attempting to copy a range of cells, including the formatting, from one workbook to another. oWBNew is the new Workbook in a new excel application.
oWBCurr is the Workbook that contains the logic. The following line:
gives me this error:![]()
oWBCurr.Sheets("Hdgs").Range("F35").Copy oWBNew.Sheets("Test").Range("A1")
Run-time error 1004:
Copy method of Range class failed
If I change oWBNew to oWBCurr.Sheets("Hdgs").Range("L100") this works.
Any ideas what the solution might be? Thanks
Bookmarks