Results 1 to 10 of 10

Thread: Solved: Send a copy of Excel file.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Mentor Marcster's Avatar
    Joined
    Jun 2005
    Posts
    434
    Location

    Question Solved: Send a copy of Excel file.

    The code below helped me with a previous thread and
    was submitted kindly by xld.


    [VBA] 'Coded by xld
    'Remove all VBA code in all modules:
    Dim oVBComp As Object
    Dim oVBComps As Object

    Set oVBComps = ActiveWorkbook.VBProject.VBComponents


    For Each oVBComp In oVBComps
    Select Case oVBComp.Type
    Case 1, 3, 2
    oVBComps.Remove oVBComp
    Case Else
    With oVBComp.CodeModule
    .DeleteLines 1, .CountOfLines
    End With
    End Select
    Next oVBComp [/VBA]





    Can the above be extended so it saves a copy of the workbook to disk
    then sends that copy as an attachment via Outlook 2000?.
    Thanks,

    Marcster
    Last edited by Marcster; 02-03-2006 at 06:02 AM.

Posting Permissions

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