Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default How to make new, blank

I've created a VBA project that automatically displays a form to collect user
input that are then sent to a single contact who manages all these records.

The problem is that I send the admin a form that ALSO contains the form (all
the VBA modules).

How do I create a "blank" spreadsheet that has "just the data" and none of
the macros?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default How to make new, blank

Hi,
The following code my work. You need to change "Sheet1" to the worksheet you
want to send.
You can enter a subject and Message. Enter the E-mail address. If you have
virus protection you may get a popup. Test before you use.

Charles

Sub sendMymail()
Sheets("Sheet1").Select '''creates the work sheet to be sent
Sheets("Sheet1").Copy
ActiveWorkbook.HasRoutingSlip = True
With ActiveWorkbook.RoutingSlip
.Delivery = xlOneAfterAnother
.Subject = " Your Subject"
.Message = "Your Message if any"
.Recipients = "Your E-Mail address"
.ReturnWhenDone = False
ActiveWorkbook.Route
End With
ActiveWorkbook.Saved = True
ActiveWindow.Close
End Sub
"Kind writer/user/programmer" wrote in
message ...
I've created a VBA project that automatically displays a form to collect
user
input that are then sent to a single contact who manages all these
records.

The problem is that I send the admin a form that ALSO contains the form
(all
the VBA modules).

How do I create a "blank" spreadsheet that has "just the data" and none of
the macros?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Make #N/A blank if no value is returned Babs in Ohio Excel Worksheet Functions 12 May 12th 23 03:46 AM
Index/match - make blank cells return a blank value. diaare Excel Worksheet Functions 3 May 3rd 23 03:44 AM
make it blank! via135 via OfficeKB.com Excel Discussion (Misc queries) 3 September 22nd 06 09:32 PM
How do I make a blank cell with a date format blank? Pivot Table/Query Excel Worksheet Functions 6 June 14th 05 11:19 PM
Make a cell blank? Matthew Leingang Excel Worksheet Functions 1 November 23rd 04 04:54 PM


All times are GMT +1. The time now is 03:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"