Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi all, I have an excel spreadsheet that on pushing a button opens up a input box, then modifies a template and saves it as a name defined fro the inputbox, in a directory based on a field in the excel sheet. What I also want it to do is to add a line to a notepad document as log, preferably, saying the project name, time, date and the user wh is using the Excel sheet. Any ideas? fname$ = InputBox("Save Letter of Acceptance as PROJECTNUMBER_PROJECTNAME_SUPPLIER_LOA:") If fname$ = Cancel Then End End If Dim appWD As Word.Application Set appWD = CreateObject("word.application.8") appWD.Visible = True appWD.Documents.Ope FileName:="\\lgwsvr011\group9\Projects-Everyone\51 Gatwick Airpor Team\SE Airports TSA Tea Folder\LOA_Generator\Templates\LOA_Template.doc" appWD.ActiveDocument.Bookmarks("LOADate").Range Format(strLOADate, "d mmmm yyyy") If Dir("\\lgwsvr011\group9\Projects-Everyone\51 Gatwick Airpor Team\SE Airports TSA Team Folder\LOA_Generator\LOA\" strProjectNumber, vbDirectory) = "" Then MkDi "\\lgwsvr011\group9\Projects-Everyone\51 Gatwick Airport Team\S Airports TSA Team Folder\LOA_Generator\LOA\" & strProjectNumber appWD.ActiveDocument.SaveA FileName:="\\lgwsvr011\group9\Projects-Everyone\51 Gatwick Airpor Team\SE Airports TSA Team Folder\LOA_Generator\LOA\" & strProjectNumbe & "\" & fname$ appWD.ActiveDocument.Close appWD.Qui -- ChrisMattoc ----------------------------------------------------------------------- ChrisMattock's Profile: http://www.excelforum.com/member.php...fo&userid=3391 View this thread: http://www.excelforum.com/showthread.php?threadid=54943 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Challenging Charting | Charts and Charting in Excel | |||
Need help on challenging question | Excel Programming | |||
Very challenging | Excel Programming | |||
Something Challenging | Excel Programming | |||
Challenging Formula in VB | Excel Programming |