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: 27
Default Close a particular Word file from Exce;

Hi,

I'm trying to close a particular Word file from Excel without saving
changes. I have the full path to the file in TempFileName variable, this is
what I tried but it is giving me a "subscript out of range" error:

Windows(TempPathName).Activate
ActiveWindow.Close

--
Thanks,
Andy
 
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
Using Macro to Close Word File dwake Excel Discussion (Misc queries) 3 December 3rd 09 02:04 AM
printing Exce 2007l spreadsheets from Word 2007 cynwalker Excel Discussion (Misc queries) 0 August 6th 09 04:18 PM
default font in Word and Exce 2007? Debbie Excel Discussion (Misc queries) 1 September 3rd 07 08:48 PM
Excel caluclation setting reverts back to manual when I close Exce mm1861 Setting up and Configuration of Excel 4 August 22nd 05 07:17 PM
How do you keep a comment close to the cell it relates to in Exce. EHN Excel Discussion (Misc queries) 1 April 18th 05 07:47 PM


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