Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Creating excel files using VBA


Hi,
I am working on a VB application which will export the results to a
Excel file. The Excel file generated should also have graphs in it.
To do this I am planning to have a excel file already existing on th
hard drive path which will be having the graphs with reference t
certain rows and columns. The application should make a copy of th
file, rename it and put the file at the same path as the original one
Later on the application should change the results obtained dynamicall
in the workbook, so that the graphs are changed accordingly.

Can anyone tell me how can I make copy of a existing excel file, renam
and save it.

Thanks in advance,

Samee

--
sameerc
-----------------------------------------------------------------------
sameerce's Profile: http://www.excelforum.com/member.php...nfo&userid=807
View this thread: http://www.excelforum.com/showthread.php?threadid=26912

  #2   Report Post  
Posted to microsoft.public.excel.programming
jaf jaf is offline
external usenet poster
 
Posts: 300
Default Creating excel files using VBA

Hi,
application.savecopyas "machinename\shareddrive\path\filename.xls"

But what you really need is called a template.
filesave as select "template" as the file type in the drop down box.

Turn on the macro recorder and do...
filenew select the template file.
And you have the code.

--

John
johnf202 at hotmail dot com


"sameerce" wrote in message
...

Hi,
I am working on a VB application which will export the results to an
Excel file. The Excel file generated should also have graphs in it.
To do this I am planning to have a excel file already existing on the
hard drive path which will be having the graphs with reference to
certain rows and columns. The application should make a copy of the
file, rename it and put the file at the same path as the original one.
Later on the application should change the results obtained dynamically
in the workbook, so that the graphs are changed accordingly.

Can anyone tell me how can I make copy of a existing excel file, rename
and save it.

Thanks in advance,

Sameer


--
sameerce
------------------------------------------------------------------------
sameerce's Profile:
http://www.excelforum.com/member.php...fo&userid=8071
View this thread: http://www.excelforum.com/showthread...hreadid=269124



Reply
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
CREATING PDF FILES FROM EXCEL FILES NSNR Excel Discussion (Misc queries) 2 January 31st 08 06:39 AM
Excel Creating strange files Chad Guiney Setting up and Configuration of Excel 1 February 27th 07 02:31 PM
Creating a databse from several Excel files JS Excel Discussion (Misc queries) 0 June 29th 06 02:39 PM
Creating PDF files from Excel. Chaplain Doug Excel Discussion (Misc queries) 2 December 16th 04 10:42 PM
Creating excel backup files Andrew Fekete Excel Programming 1 October 14th 03 11:35 PM


All times are GMT +1. The time now is 07:29 PM.

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

About Us

"It's about Microsoft Excel"