#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 202
Default excel file paths

Is there ant way to name a file/workbook path in a non-active workbook?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default excel file paths

The only way to name a file (or change its path) is to save it (to a different
location)?

And if you're writing code to do this, the workbook doesn't need to be active.

dim wkbk1 as workbook
dim wkbk2 as workbook

set wkbk1 = workbooks("book1.xls")
set wkbk2 = workbooks("book2.xls")

wkbk1.activate
'now wkbk1 is active

wkbk2.saveas filename:="c:\temp\book99.xls", fileformat:=xlworkbooknormal




Jane wrote:

Is there ant way to name a file/workbook path in a non-active workbook?


--

Dave Peterson
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
Stop excel from dropping the 0 in the beginning of a number? Rosewood Setting up and Configuration of Excel 12 April 4th 23 02:12 PM
Reflecting info between an excel file and a word one or two excel file. Starriol Excel Worksheet Functions 0 November 3rd 05 01:49 PM
Reflecting info between an excel file and a word one or two excel file. Starriol Links and Linking in Excel 0 November 3rd 05 01:49 PM
Very slow in opening Excel 97 file in Excel 2003 S M Setting up and Configuration of Excel 0 October 22nd 05 07:32 PM
Locating a file in excel with a partial file name. Audra Excel Discussion (Misc queries) 2 February 19th 05 08:52 PM


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