Click here to Skip to main content
15,891,730 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

First, forgive me SAKryukov,
I deleted the thread "Excel Formulas I could not Understand" before your message popped from my inbox, and just like what so said,
='IE-YTD'!D92, - IE-YTD is the sheet's name and D92 was the row/column.

Sorry bout that SA.

My question now is How can I opened a save workbook and add new sheet and use that sheet in my Automation?
Posted
Updated 25-Jan-12 20:56pm
v2
Comments
Sergey Alexandrovich Kryukov 26-Jan-12 2:33am    
Well, don't try too hard, you are unforgettable :-)
No problem though. My guess was that you realized what it was before I answered.
--SA
Alan Tuscano 26-Jan-12 2:59am    
yeah.. :-)
Amir Mahfoozi 26-Jan-12 2:59am    
[Moved from answers to here]
Alan Tuscano : I have found my answer.

1 solution

VB
'open existing workbook
xlWbk = ExcApp.Workbooks.Open(sFileName)
'add new worksheet
xlWsh = xlWbk.Worksheets.Add()
 
Share this answer
 
Comments
ProEnggSoft 23-Mar-12 20:57pm    
To the point. +5
Maciej Los 24-Mar-12 7:34am    
Thank you ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900