SOLVED!!!!SAVE SHEETS WITH VALUES

ROBINSYN

Board Regular
Joined
Aug 19, 2002
Messages
188
I have a template and want to create a macro that will save 2 sheets to a new file using the current name of the vendor selected and the po number. Let's say cell k8 & g10. I do not need the functions in new file only the format of the sheet and values choosen. Is this possible?
This message was edited by ROBINSYN on 2002-11-17 18:56
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

royUK

Well-known Member
Joined
Jul 24, 2002
Messages
1,606
Try this :
Sub SaveForm()
'
' SaveForm Macro
' Macro recorded 12/10/2002 by Roy Cox
'

'
ActiveWindow.ScrollColumn = 3
ActiveWindow.ScrollColumn = 2
ActiveWindow.ScrollColumn = 1
Range("A1:K13").Select
Selection.Copy
Workbooks.Open Filename:="C:WINDOWSDesktopDbase.xls"
Sheets("Sheet1").Select
Sheets.Add
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveWorkbook.Save
ActiveWindow.Close
Range("A1").Select
End Sub

Just a quick attempt but it seems to work
 

ROBINSYN

Board Regular
Joined
Aug 19, 2002
Messages
188
I tried this and it worked once but on second attempt claims file already exists.
i will eventually have 500 plus workbooks and they all need their unique identifiable name automatically assigned. Is it possible to do this while maintaining the original sheets integrity.
 

Forum statistics

Threads
1,144,312
Messages
5,723,650
Members
422,508
Latest member
Lordkit1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top