Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hello! I'm quite a novice in programming VBA so I hope you've got somethin for me. :) My task is to create some kind of template in excel (that contain formal informations), then search other documents for different infos insert it all in the template and save the template with a differen name. The search part is ok, but how do I open the template (standard) fil and save it with a new name. Hope you can help me. Best regards /Tommy, Denmar -- Tm ----------------------------------------------------------------------- Tmf's Profile: http://www.excelforum.com/member.php...fo&userid=2498 View this thread: http://www.excelforum.com/showthread.php?threadid=38517 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tmf,
By 'template' I presume you mean you are using a standard .xls file as a template, in which case I would simply copy the file before you open it- something like this Dim wbCopy as Workbook FileCopy "C:\Standard Template.xls", "C:\NewFile.xls" Set wbCopy = Application.Workbooks.Open("C:\NewFile.xls") wbCopy.Worksheets("Sheet1").Range("A1").Value = 42 'etc... Cheers, Dave "Tmf" wrote: Hello! I'm quite a novice in programming VBA so I hope you've got something for me. :) My task is to create some kind of template in excel (that contains formal informations), then search other documents for different infos, insert it all in the template and save the template with a different name. The search part is ok, but how do I open the template (standard) file and save it with a new name. Hope you can help me. Best regards /Tommy, Denmark -- Tmf ------------------------------------------------------------------------ Tmf's Profile: http://www.excelforum.com/member.php...o&userid=24985 View this thread: http://www.excelforum.com/showthread...hreadid=385170 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
creating a "date selector box" or "pull down box" in a cell | Excel Worksheet Functions | |||
Creating the equivalent of a "hash code" for a workbook | Excel Discussion (Misc queries) | |||
Help creating workbook with worksheets "linking" cells | Excel Worksheet Functions | |||
String manipulation and creating an "offline" excel workbook | Excel Programming | |||
String manipulation and creating an "offline" excel workbook | Excel Programming |