LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Create new Excel file


Hi,

I would like to create a new excel file from scratch using VBA.
Here's what I got so far

Dim xlApp As Excel.Application, xlBook As Excel.Workbook, xlSheet As
Excel.Worksheet

Set xlApp = CreateObject("excel.application")
Set xlBook = xlApp.Workbooks.Open("c:\test.xls", 0, False, 2)
Set xlSheet = xlBook.Worksheets(1)

Now that is to create a new excel file from and existing on
"test.xls". How would I do it to create one without having an existin
one.

Something like Set xlBook = xlApp.Workbooks.New ??

thank

--
FrankAlv
-----------------------------------------------------------------------
FrankAlva's Profile: http://www.excelforum.com/member.php...fo&userid=1620
View this thread: http://www.excelforum.com/showthread.php?threadid=27720

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to create a hyperlink in excel to a pdf file? LFallon Excel Worksheet Functions 0 February 28th 07 02:49 PM
How do i create an excel file using asp Farooq Excel Discussion (Misc queries) 0 March 15th 05 11:09 AM
Create a batch file from a number of Excel File Vinay[_2_] Excel Programming 0 September 8th 04 01:11 AM
Create PDF from Excel File Shashi Bhosale Excel Programming 1 August 6th 04 08:42 AM
VB.Net: Create Excel File/App? Jason[_34_] Excel Programming 2 July 26th 04 09:39 PM


All times are GMT +1. The time now is 10:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"