bvanscoy678
Member
Hi,
I am very close to finishing this whole project, but I need one last tweek. I recieved help last week for the below code. The only trouble is I want to keep the values and formatting of the original worksheet.
I tried:
owb.Worksheets(1).Range("A1").PasteSpecial 12
But that must be wrong. I read and played with a lot of different settings with no luck.
Thanks for any help. Brent
I am very close to finishing this whole project, but I need one last tweek. I recieved help last week for the below code. The only trouble is I want to keep the values and formatting of the original worksheet.
I tried:
owb.Worksheets(1).Range("A1").PasteSpecial 12
But that must be wrong. I read and played with a lot of different settings with no luck.
Thanks for any help. Brent
Code:
Sub Simpleo()
Dim i As Integer
Dim owb As Workbook
Dim ws As Worksheet
Set ws = Sheet2
'' code works perfect, just need to figure out the copy/paste values and formatting
For i = 2 To Sheet1.Range("E" & Rows.Count).End(xlUp).Row
Sheet2.[E3] = Sheet1.Range("E" & i) & "-#1"
Set owb = Workbooks.Add
ws.Columns("A:H").Copy
owb.Worksheets(1).Range("A1").PasteSpecial 12
'Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
owb.SaveAs "C:\TEST Fitness Results\" & ws.[E3] & ".xls", FileFormat:=56
owb.Close False
Next i
End Sub