Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-15-2018, 01:00 AM
sknight sknight is offline Mail every worksheet with address in A1 Windows 10 Mail every worksheet with address in A1 Office 2010 64bit
Novice
Mail every worksheet with address in A1
 
Join Date: Feb 2018
Posts: 2
sknight is on a distinguished road
Default Mail every worksheet with address in A1

Hello


I am using code from the below link to send multiple sheets to email addresses in cell a1.

http://www.rondebruin.nl/win/s1/outlook/amail5.htm

I have hit a snag though. My sheets are made up of filtered pivots and I don’t want the recipient to be able to take the filter off.

Could the code be amended to first copy and paste special the whole sheet then send?

Thanks

Stephen
Reply With Quote
  #2  
Old 05-23-2018, 08:51 AM
Roger Govier Roger Govier is offline Mail every worksheet with address in A1 Windows 10 Mail every worksheet with address in A1 Office 2016
Novice
 
Join Date: Oct 2017
Location: Abergavenny, Wales, UK
Posts: 13
Roger Govier is on a distinguished road
Default

Hi

In Ron's code, immediately after
sh.copy
and before
Set wb = ActiveWorkbook

insert the following 3 lines of code and that should achieve what you want
Code:
    ActiveSheet.UsedRange.Copy
    ActiveSheet.UsedRange.PasteSpecial Paste:=xlPasteValuesAndNumberFormats
    ActiveSheet.UsedRange.PasteSpecial Paste:=xlPasteFormats
Reply With Quote
  #3  
Old 06-07-2018, 10:23 AM
Andy79 Andy79 is offline Mail every worksheet with address in A1 Windows 10 Mail every worksheet with address in A1 Office 2016
Novice
 
Join Date: Jun 2018
Posts: 1
Andy79 is on a distinguished road
Default Nearly There

Hi Roger

Thanks and its a great bit of code but it only works on the first sheet. Is there a way to replicate/loop it over all the sheets.

I'm so very nearly there.

Thanks
Andy
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I mail merge just part of one worksheet tomseeley Excel 0 01-25-2014 12:10 PM
Mail every worksheet with address in A1 How to forward all e-mails from one address to five (5) other e-mail address? adi2012 Outlook 1 09-09-2012 06:41 PM
Mail every worksheet with address in A1 Word mail merge from a protected Excel worksheet Platform Mail Merge 10 09-28-2011 05:12 AM
cannot receive my own e mail and from same address vb55 Outlook 0 03-13-2009 11:38 AM
Mail every worksheet with address in A1 mail receipent with an excel worksheet attachment jburke@holidayinnislip.co Office 1 11-14-2005 08:55 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:06 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft