LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default VBA Copy values only onto new workbook

Hi,

I've been successfully using Ron de Bruins Mail An Active sheet macro.
I however now need to modify the macro so it either:
1. copys Macro Functions onto the new workbook or
2. it pastes Values and Formats Only onto the new workbook opposed to "Set
Destwb = ActiveWorkbook".
The reason being, I have macro formulas now doing calculations on the page,
so when the new workbook is created the formulas results in #NAME?. I would
prefer not to copy and paste values only over the main working document as
this would loose the formulas that the users require for when they use it
again.

Here's the start of the code that I'm hoping someone can modify for me:

Sub Mail_ActiveSheet_xx() 's()
'Working in 97-2007
Dim FileExtStr As String
Dim FileFormatNum As Long
Dim Sourcewb As Workbook
Dim Destwb As Workbook
Dim TempFilePath As String
Dim TempFileName As String

With Application
.ScreenUpdating = False
.EnableEvents = False
End With

Set Sourcewb = ActiveWorkbook

'Copy the sheet to a new workbook
ActiveSheet.Copy

'It's here when I need it to paste values and formats only on the new
workbook. Or alternatively, copy the Macro Functions aswel so the formulas
work.

Set Destwb = ActiveWorkbook

Appreciate anyones help !!

 
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 values of worksheet a to workbook b Nev Excel Discussion (Misc queries) 5 April 8th 09 09:35 PM
Macro to copy values to Workbook KCG Excel Discussion (Misc queries) 10 November 6th 07 10:52 PM
copy all and paste values for all sheets in a workbook cass calculator Excel Worksheet Functions 6 June 1st 07 02:58 PM
how to copy only values and formats of worksheets to new workbook rvd Excel Worksheet Functions 3 January 31st 07 12:43 PM
How do I copy text and values from the same workbook onto a different sheet?? kepcopower Excel Discussion (Misc queries) 2 March 23rd 06 09:10 PM


All times are GMT +1. The time now is 01:25 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"