Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Olga Cook
 
Posts: n/a
Default Insrt curr file name & name of active worksheet respectively

I want to be able to save the excel workbook file name with each worksheet
within the workbook per tab name respectively, can this be done?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Insrt curr file name & name of active worksheet respectively

Sub SaveAsSheets()
Dim oWS As Worksheet

For Each oWS In ActiveWorkbook.Worksheets
oWS.Copy
ActiveWorkbook.SaveAs oWS.Name
Next oWS
End Sub


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Olga Cook" <Olga wrote in message
...
I want to be able to save the excel workbook file name with each worksheet
within the workbook per tab name respectively, can this be done?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Olga Cook
 
Posts: n/a
Default Insrt curr file name & name of active worksheet respectively

easy.got the answer. simply save as usual except add the cell number you are
in, i.e., =cell("filename",a28) will save the tab(s) in the workbook as
respectively named worksheets within the workbook. Thank you Aida for your
help!

"Olga Cook" wrote:

I want to be able to save the excel workbook file name with each worksheet
within the workbook per tab name respectively, can this be done?

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
how can you list all of the worksheet names in a file harish Excel Discussion (Misc queries) 1 March 6th 06 04:13 PM
Can you auto-trigger a sound file to play when a worksheet opens? Nanotexan Excel Worksheet Functions 1 February 5th 06 05:16 PM
Comparing a list to a Calendar worksheet. PatrickL Excel Worksheet Functions 0 August 25th 05 04:21 PM
Reference a cell on another worksheet in the same spreadsheet file Dave Excel Discussion (Misc queries) 3 May 17th 05 08:55 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


All times are GMT +1. The time now is 04:34 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"