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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
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
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,215,433
Messages
6,124,861
Members
449,195
Latest member
MoonDancer

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
Back
Top