Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default Macro to email image of current protected WSheet

Hi,

Is it possible & how.

I would like to send a copy of the current single WS by email using a macro,
the sheet is protected, and the receiver only needs to have a image meaning
non fuctioning WSheet, if I send a fuctioning WS the receiver cant see all of
it due to some cells being linked to others in the Wbook.

any ideas welcome

Repectx

Laddie
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Macro to email image of current protected WSheet

Hi Laddie

To produce a single sheet workbook containing a static copy of the original
worksheet, try something like:

'=============
Public Sub Tester()
Dim WB As Workbook
Dim SH As Worksheet

Set WB = ThisWorkbook
With WB
Set SH = .Sheets("Sheet3") '<<==== CHANGE
SH.Copy After:=.Sheets(.Sheets.Count)
End With

With SH.UsedRange
.Value = .Value
End With
SH.Copy
End Sub
'<<=============

To email the new workbook, see Ron de Bruin's
extensive range of sample code at:

Example Code for sending mail from Excel
http://www.rondebruin.nl/sendmail.htm



---
Regards,
Norman


"LaDdIe" wrote in message
...
Hi,

Is it possible & how.

I would like to send a copy of the current single WS by email using a
macro,
the sheet is protected, and the receiver only needs to have a image
meaning
non fuctioning WSheet, if I send a fuctioning WS the receiver cant see all
of
it due to some cells being linked to others in the Wbook.

any ideas welcome

Repectx

Laddie



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Macro to email image of current protected WSheet

Hi Laddie,


Replace the suggested code to produce the single-sheet
workbook with the following version:

'=============
Public Sub Tester()
Dim WB As Workbook
Dim SH As Worksheet

Set WB = ThisWorkbook
With WB
Set SH = .Sheets("Sheet3") '<<==== CHANGE
SH.Copy After:=.Sheets(.Sheets.Count)
End With

SH.Copy

With ActiveSheet.UsedRange
.Value = .Value
End With

Application.DisplayAlerts = False
With WB
.Sheets(.Sheets.Count).Delete
Application.DisplayAlerts = True
End With
End Sub
'<<=============


---
Regards,
Norman



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default Macro to email image of current protected WSheet

Thank Norman,

"Norman Jones" wrote:

Hi Laddie,


Replace the suggested code to produce the single-sheet
workbook with the following version:

'=============
Public Sub Tester()
Dim WB As Workbook
Dim SH As Worksheet

Set WB = ThisWorkbook
With WB
Set SH = .Sheets("Sheet3") '<<==== CHANGE
SH.Copy After:=.Sheets(.Sheets.Count)
End With

SH.Copy

With ActiveSheet.UsedRange
.Value = .Value
End With

Application.DisplayAlerts = False
With WB
.Sheets(.Sheets.Count).Delete
Application.DisplayAlerts = True
End With
End Sub
'<<=============


---
Regards,
Norman




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 row 2 of any wsheet to the new crated wsheet celio3c Excel Worksheet Functions 6 December 21st 08 01:54 AM
Macro doesn't insert image when spreadsheet is protected ATang Excel Worksheet Functions 2 September 12th 06 03:14 AM
Macro to insert Current Time into protected cell [email protected] Excel Programming 1 July 13th 05 10:30 AM
How do I insert an image into a specific cell within a protected . Scott Peebles Excel Discussion (Misc queries) 1 January 7th 05 01:14 AM
Insert Image in cell B13 on Protected worksheet Manuel Excel Programming 1 May 26th 04 03:04 PM


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