Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 27th, 2004, 10:21 AM
Registered User
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Send Part of Excel Sheet with specified Subject??

Hi Dudes!

I wonder how I can send a site in an excel sheet with the usage of VBA. But only on site of an excel sheet. If I have a site where the users have to fill in data, only this site of the excel-sheet should be send to a recipient.

Sorry for my bad english! I hope you understand what I want to say!

:D

Jim

 
Old January 28th, 2005, 04:35 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Jim

I've made it by this way:
First copy activesheet to new workbook and save it (Temp.xls).
Send activeworkbook as an attachment to somebody.
Delete the temporary file.
Here's the code

Sub Send()
    Dim Filename As String

    ActiveSheet.Copy
    Application.DisplayAlerts = False
    ActiveWorkbook.SaveAs "Temp.xls"
    Filename = ActiveWorkbook.FullName
    Application.DisplayAlerts = True
    ActiveWorkbook.SendMail "[email protected]", "Subject"
    ActiveWorkbook.Close False
    Kill Filename
End Sub



-vemaju






Similar Threads
Thread Thread Starter Forum Replies Last Post
EXCEL SHEET SECURITY kotaiah Excel VBA 1 February 21st, 2013 08:45 AM
how to save as an excel sheet azizsaad19 Beginning VB 6 2 May 25th, 2007 09:48 AM
Non Editable Excel Sheet kotaiah Excel VBA 0 September 13th, 2006 03:46 AM
write multi-sheet Excel w/o Excel.Application manmoth Classic ASP Components 2 November 22nd, 2005 10:56 AM
Printing excel sheet siddique Excel VBA 3 February 15th, 2005 12:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.