LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,549
Default Excel 2003 VBA problem - extracting and emailing worksheets

Add another sheet to your workbook.
Name it something like HourWorkedexpenses_new. Put your headings on it.
Send that sheet instead of HourWorkedexpenses...

With Sourcewb
Set TheActiveWindow = ActiveWindow
Set TempWindow = .NewWindow
..Sheets(Array("UserList", "HoursWorkedexpenses_new", "ProjectList", "CLSstageList", "Input")).Copy
End With

--
Jim Cone
Portland, Oregon USA
http://www.mediafire.com/PrimitiveSoftware
http://www.contextures.com/excel-sort-addin.html




"BJ&theBear"
wrote in message ...
The macro/VBA coding below is an adaptation of Ron de Bruins macro for
extracting certain sheets from a workbook and creating another
workbook which is then emailed to an address from Outlook Contact list
or to specified addresses.

My problem is that one of the sheets I wish to email has many
thousands of entries and all I really need is a blank worksheet with
the correct columns and headings. This worksheet will subsequently be
completed by employees and then emailed back to be imported back into
the main workbook. The other worksheets need to retain all their
information as they are lists for a series of dropdown selection
lists.

I do not want to "blank" the worksheet before it is exported/copied to
the new sheet as there is a fear that if the macro crashes then all
data in the main workbook will be lost.

Can anyone advise how I can just export the sheet
"HoursWorkedexpenses" still as part of the array but with no
information other than the column headings.

I cannot get my head round this problem
Thanks for any advice
Brian
Scotland

-snip-



 
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
Excel 2003 - emailing Neil Holden Excel Discussion (Misc queries) 0 March 4th 10 10:36 AM
Emailing in excel 2003 Neil Holden Excel Discussion (Misc queries) 2 February 26th 10 04:49 PM
Emailing in excel 2003 Neil Holden Excel Discussion (Misc queries) 5 February 6th 10 11:47 PM
Emailing in excel 2003 Neil Holden Excel Discussion (Misc queries) 0 January 28th 10 04:20 PM
Emailing in excel 2003 Neil Holden Excel Discussion (Misc queries) 1 January 28th 10 11:53 AM


All times are GMT +1. The time now is 02:46 AM.

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"