Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Lynda
 
Posts: n/a
Default Copy to new spreadsheet

Is there a way to make an excel sheet covered in formulas
copy itself and create a new spreadsheet with values
instead of formulas to be emailed as just one sheet of
information?

I don't know where to start, I am quite new to vba so be
gentle!

Lynda
  #2   Report Post  
Nick Hodge
 
Posts: n/a
Default

Linda

this copies the activesheet to a new workbook, kills the formulas and asks
for an email address to mail to and then mails it. It can of course be
refined, but maybe it's a start for you

Sub MoveActiveSheetKillFormulasAndEmail()
Dim wb As Workbook
Dim wks As Worksheet, rng As Range
Dim sEmail As String
ActiveSheet.Copy
Set wb = ActiveWorkbook
Set wks = ActiveSheet
Set rng = wks.Cells.SpecialCells(xlCellTypeFormulas)
rng.Copy
rng.PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
sEmail = InputBox("Enter the email address", "Email Address")
wb.SendMail Recipients:=sEmail, Subject:="Here's the worksheet"
End Sub

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS

"Lynda" wrote in message
...
Is there a way to make an excel sheet covered in formulas
copy itself and create a new spreadsheet with values
instead of formulas to be emailed as just one sheet of
information?

I don't know where to start, I am quite new to vba so be
gentle!

Lynda



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
Copy files from spreadsheet into folder Intotao Excel Discussion (Misc queries) 3 January 27th 05 11:38 PM
Applying Existing Password to New Spreadsheet Vic Excel Discussion (Misc queries) 1 January 27th 05 12:37 AM
Importing Data From Another Spreadsheet Tiziano Excel Discussion (Misc queries) 6 January 7th 05 02:35 AM
Copy and pasting graphs to PowerPoint JZip Excel Discussion (Misc queries) 0 January 6th 05 08:29 PM
copy qualifying rows to another spreadsheet acpharmd Excel Worksheet Functions 1 December 29th 04 09:45 PM


All times are GMT +1. The time now is 11:22 PM.

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

About Us

"It's about Microsoft Excel"