+ Reply to Thread
Results 1 to 1 of 1

Saving excel file on server and emailing it through Lotus Notes

Hybrid View

  1. #1
    Registered User
    Join Date
    03-08-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    1

    Saving excel file on server and emailing it through Lotus Notes

    Hi,

    I am right now working on a production spreadsheet macro , which will save the file after each shift-> save it on the server-> email to the manager and becomes blank again.

    I had started on the path of closing the excel file after it saves but seems like not an good idea.So now i am looking for it to save the file, send email and sheet becoming blank again.

    I am not a pro when it comes to macro, i am learning it right now. If some one could help me out. I will be very grateful to him.

    Private Sub CommandButton1_Click()
    
    Dim TheFile As Variant
    TheFile = Application.GetSaveAsFilename(“R:\ENGR\Shared\Engi neers\Prod\Shift A - Date.xls”,”Workbook(*.xls),*.xls”,,”Enter Date:”)
    
    
    If TheFile=False Then
    MsgBox “Why Did You Cancel?Try Again.”
    Else
    MsgBox “Thank You, Have a Nice Day”
    End If
    ActiveWorkbook.SaveCopyAs TheFile
    ActiveWorkbook.Close (False)
    End Sub
    Last edited by davesexcel; 03-10-2012 at 06:44 AM. Reason: code tags required

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1