Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Saving Worksheets

I am trying to save a "worksheet" from the active workbook_A into a new
workbook_B, but I am wanting the user to input a filename to give workbook_B.
I'm assuming I have to create a UserForm to grab the input name from the
user.

Worksheets("from workbook_A").Select
Worksheets("LogHistory").SaveAs = "c:\temp\<filename from UserForm"

No success. Can anyone prescribe a remedy that is simple? Thank you.

D. Parker
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Saving Worksheets

Did you look at the GetSaveAsFilename method in the Help file?

"D.Parker" wrote:

I am trying to save a "worksheet" from the active workbook_A into a new
workbook_B, but I am wanting the user to input a filename to give workbook_B.
I'm assuming I have to create a UserForm to grab the input name from the
user.

Worksheets("from workbook_A").Select
Worksheets("LogHistory").SaveAs = "c:\temp\<filename from UserForm"

No success. Can anyone prescribe a remedy that is simple? Thank you.

D. Parker

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Saving Worksheets

I am using the GetSaveAsFilename procedure as you suggested and from another
response from the user, but when I go to my folder there is no saved file.
Also, I am only interested in saving the worksheet to a new workbook with the
intention that no VBA programming code will exist in the save file.

This is what I have thus far:

Dim SaveName As Variant
Dim fFilter As String
Dim NewName As Variant

NewName = "P2 LogHistory Shift"
fFilter = "Excel Files (*.xls), *.xls"
SaveName = Application.GetSaveAsFilename _
(NewName, fileFilter:=fFilter)

Any adjustments to save a specific worksheet to a new workbook with no VBA
code saved is appreciated?



"D.Parker" wrote:

I am trying to save a "worksheet" from the active workbook_A into a new
workbook_B, but I am wanting the user to input a filename to give workbook_B.
I'm assuming I have to create a UserForm to grab the input name from the
user.

Worksheets("from workbook_A").Select
Worksheets("LogHistory").SaveAs = "c:\temp\<filename from UserForm"

No success. Can anyone prescribe a remedy that is simple? Thank you.

D. Parker

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
All worksheets in document are not saving! Christine Excel Discussion (Misc queries) 1 April 23rd 10 03:41 PM
Saving a File of worksheets Mrs M New Users to Excel 2 May 3rd 09 07:38 PM
saving training worksheets anc Excel Discussion (Misc queries) 0 April 9th 09 01:03 AM
Saving Multiple Worksheets Sherry Excel Discussion (Misc queries) 4 May 17th 07 05:49 PM
Saving worksheets Tkaminski Excel Worksheet Functions 1 April 18th 05 03:49 PM


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

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

About Us

"It's about Microsoft Excel"