LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Save-as without stating path

During a macro, I will move data to a new workbook. Then I will to do
a Save-as to name the new book. What I need to know is the coding to
do this Save-as in the current folder without regard to the drive
letter.

I don't know the drive letter a user will have these files in, nor
will I necessarily know the folders they will be in. But, I want the
new workbook to be in the same folder as the original.

Example, from the original file (which contains the macro), a new
workbook is created. Data from the original is copied then pasted in
the new workbook. This stuff I know how to do....
At this point I need help. I need to instruct the macro to do a Save-
as using the file name of Test.Xls. No path, no drive letter.
I've looked at old posts, and cannot find this.
Thanks
j.o.
 
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
Comparing & Stating The Nearest Matching FARAZ QURESHI Excel Discussion (Misc queries) 2 April 11th 08 07:01 AM
Stating an area in vba piotr-unia Excel Programming 4 August 28th 07 11:42 AM
My IF statement is stating False but if I manual calculate it it Kyla2000 Excel Discussion (Misc queries) 4 April 11th 06 04:22 AM
save as path kevin Excel Discussion (Misc queries) 1 February 15th 05 12:40 PM
Stating ranges in formulae Steven Revell Excel Programming 3 November 10th 03 03:05 PM


All times are GMT +1. The time now is 05:03 AM.

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"