Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 'Save As' function / macro

I have a workbook consisting of several worksheets. I'd
like to save only one (1) on the worksheets. Can someone
point me in the right direction? I assume I need to write
a macro.

Thanks,
Jeff
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 'Save As' function / macro

Activesheet.Copy
Activeworkbook.SaveAs Filename:="myfile.xls"

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"jpi_chicago" wrote in message
...
I have a workbook consisting of several worksheets. I'd
like to save only one (1) on the worksheets. Can someone
point me in the right direction? I assume I need to write
a macro.

Thanks,
Jeff



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 'Save As' function / macro

Thanks much! Just what I was looking for.

-----Original Message-----
Activesheet.Copy
Activeworkbook.SaveAs Filename:="myfile.xls"

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"jpi_chicago"

wrote in message
...
I have a workbook consisting of several worksheets. I'd
like to save only one (1) on the worksheets. Can

someone
point me in the right direction? I assume I need to

write
a macro.

Thanks,
Jeff



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default 'Save As' function / macro

Hi Jeff

ActiveSheet.Copy
or
Sheets("Sheet3").Copy
Create a new workbook with only that sheet

Sub test()
ActiveSheet.Copy
ActiveWorkbook.SaveAs "C:\Yourfilename.xls"
ActiveWorkbook.Close False
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"jpi_chicago" wrote in message ...
I have a workbook consisting of several worksheets. I'd
like to save only one (1) on the worksheets. Can someone
point me in the right direction? I assume I need to write
a macro.

Thanks,
Jeff



  #5   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default 'Save As' function / macro

Thanks, Ron. Your reply was very useful.

-----Original Message-----
Hi Jeff

ActiveSheet.Copy
or
Sheets("Sheet3").Copy
Create a new workbook with only that sheet

Sub test()
ActiveSheet.Copy
ActiveWorkbook.SaveAs "C:\Yourfilename.xls"
ActiveWorkbook.Close False
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"jpi_chicago"

wrote in message news:22bad01c45d55$0f103420
...
I have a workbook consisting of several worksheets. I'd
like to save only one (1) on the worksheets. Can

someone
point me in the right direction? I assume I need to

write
a macro.

Thanks,
Jeff



.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to Insert Current Date into cell - Macro to "Save As" Guy[_2_] Excel Worksheet Functions 4 December 12th 08 08:20 PM
Macro Will Not Save sonia5880 Excel Discussion (Misc queries) 2 November 4th 08 05:18 PM
Save As Macro el zorro[_2_] Excel Discussion (Misc queries) 3 July 18th 07 12:28 AM
Macro to Save without the Save Message Ellen G Excel Discussion (Misc queries) 4 February 23rd 07 08:52 PM
Prompted to save changes after macro save - why? Izar Arcturus Excel Programming 2 December 10th 03 09:27 PM


All times are GMT +1. The time now is 06:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"