View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gator Girl Gator Girl is offline
external usenet poster
 
Posts: 36
Default (DAVE PETERSON) - SAVE WORKSHEET AS A NEW WORKBOOK

Hi Sheeloo - I don't know the first thing about this. I've written tons of
macros, but this is different. What is a Sub Copymacro( )? What is an End
Sun. Where do I start doing this? Pretend I am really stupid (generally
I'm not but about this, if the shoe fits....)

"Sheeloo" wrote:

Put a Sub Copymacro() before the code
and End Sun at the end.
Make updates as marked in the code
THEN
1. Open the Visual Basic Editor by going to tools-Macro's-Visual Basic
Editor or use Alt-F11
2. On the toolbar of the Visual Basic Editor, go to insert - module after
selecting the workbook on the left in which you want to use this code
3. In the module pane paste the code above.
4. Close the Visual Basic Editor By clicking the X in the upper right
corner or go to File-Close

"Gator Girl" wrote:

DAVE PETERSON SAYS TO USE THIS: BUT HOW DO I SET IT UP? ALT-F11 and THEN
WHAT?
dim wks as worksheet
set wks = worksheets("somesheetnamehere")
wks.copy 'copies to a new workbook--single sheet
'save the newly created single sheet workbook.
with activeworkbook
.saveas filename:="C:\..."
.close savechanges:=false
end with