LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Email Single WorkSheets from a Workbook

Scenario:

I have a workbook with names of people, managers and telephone costs. I
need to email the managers a list of all of their people and their telephone
costs. So, I begin by making a Pivot Table of my data (grouped by manager)
and then when I double-click on the total costs, it automatically creates a
new sheet detailing all of the staff and their costs. Lovely! Now I want to
send these individual sheets to the managers (i.e. the one sheet only, not
the rest of the workbook). Can I do this? The manager's email is in one of
the fields, if that helps.

Anyway, what I tried to do was this. Record a macro, double-click on the
pivot table cell, a new sheet is created. Copy the cell with the managers
name on and paste into the sheet name. Move the sheet to a new workbook.
Save the workbook and paste the sheet name into the saved name. Do File,
Send as Attachment, paste name in To box and Send. Carry on until all
managers are done.

However, I come stuck right near the beginning because my VBA is saying
select sheet 3, when of course next time it will be sheet 4 and therefore is
still looking for sheet 3. Can I say somehow, just select the active sheet
that I am on?

I can attach excel spreadsheet if you like?

Many thanks is much appreciated.
 
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
Email a single Excel worksheet instead of the whole workbook. Elgin Excel Discussion (Misc queries) 3 April 4th 23 11:36 AM
Email single worksheets Higesan Excel Discussion (Misc queries) 3 December 4th 09 04:08 PM
How do I email a single worksheet, not the entire workbook? sanlee Excel Discussion (Misc queries) 3 June 17th 08 05:34 PM
cannot email a single page in 2007, as oppossed to whole workbook. Susan77 Excel Discussion (Misc queries) 1 August 24th 07 04:53 PM
Can I email a single sheet in a workbook? mjdbus00 Excel Worksheet Functions 1 October 11th 05 07:43 PM


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