
September 20th, 2003, 01:07 PM
|
|
Junior Member
|
|
Join Date: Sep 2003
Location: uk
Posts: 8
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Copy Worksheet-Advanced Problem
Hi everyone,
I really need the smart people on this problem because I am well out of suggestions here. The problem is this: I have a workbook that is hidden, I want to copy any worksheet in the workbook and place it before "Sheet1" an example of the code i use is below.....
EFA.Workbooks(MyWorkBookName).Sheets("Anyworksheet").Copy Before:=Sheets("Sheet1")
EFA = Public EFA As New Excel.Application
MyWorkBookName (variable) holds the location and full filename of the workbook
The workbook is set to hidden before this code is read. Really need some help on this on how to fix it.
Thank you.
|