View Single Post
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

I'm not Ron, but you could try this:

make this portion:

For N = LBound(Shname) To UBound(Shname)
Sheets(Shname(N)).Copy
...

look like:

For N = LBound(Shname) To UBound(Shname)
Sheets(Shname(N)).Copy
with activesheet.usedrange
.value = .value
end with
...

Steved wrote:

Hello Ron from Steved

Ok is it possible with the below please to hightlight the
whole page and change all the formulas to a value, so I am
asking please is their a formula you can add to the below
to achieve this.
Thankyou.

Sub Mail_test()
Dim wb As Workbook
Dim strdate As String
Dim Shname As Variant
Dim Addr As Variant
Dim N As Integer

strdate = Format(Now, "dd-mm-yy h-mm-ss")
Shname = Array("1-City", "2-Roskill", "3-Papakura", "4-
Wiri", "5-Shore", "6-Orewa", "7-Swanson", "8-Panmure")
Addr = Array("1-Depot", "2-Depot", "4-Depot", "4-
Depot", "5-Depot", "5-Depot", "7-Depot", "1-Depot")

Application.ScreenUpdating = False

For N = LBound(Shname) To UBound(Shname)
Sheets(Shname(N)).Copy
Set wb = ActiveWorkbook
With wb
.SaveAs "Sheet " & Shname(N) _
& " " & strdate & ".xls"
.SendMail Addr(N), _
"Depot Annulments"
.ChangeFileAccess xlReadOnly
Kill .FullName
.Close False
End With
Next N
Application.ScreenUpdating = True
End Sub


--

Dave Peterson