Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Overwrite Open Excel files on Macro

Good morning,

I have a macro that goes out to an excel document on a Windows Sharepoint
site and updates a bunch of cells then after updating it is supposed to save.

The problem is if someone has the document open, i can save it. It gives me
an error. Is there a way of telling the macro... "No matter if someone has it
open, update the cells and save the document"

Here is part of the code

Workbooks.Open "http://Sharepoint.auth.testing/Host.xls"
Sheets("Detail").Select
Application.Goto Reference:="Query_from_MS_Access_Database"
Selection.QueryTable.Refresh BackgroundQuery:=False
Sheets("West Host Inventory Total").Select
Range("A1").Select
ActiveWorkbook.SaveAs Filename:= _
"http://Sharepoint.auth.testing/Host.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWindow.Close

Thanks everyone... and hopefully ou can help me fix this junk of a problem :)

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200904/1

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
Excel Macro (open and save files with different drives) jxbeeman Excel Discussion (Misc queries) 1 September 25th 09 07:40 PM
macro/sub to copy a specific ws from source wb to open wb and overwrite existing ws nycjdc Excel Programming 3 December 4th 06 10:54 PM
Need to open two macro excel files for macros to work nigelbarham Excel Programming 2 May 6th 06 04:35 PM
Calc status of open excel workbook should not overwrite another Michael Hill Setting up and Configuration of Excel 1 October 28th 05 06:48 PM
Excel macro to open files within a folder Craig[_24_] Excel Programming 2 October 8th 05 08:28 AM


All times are GMT +1. The time now is 11:31 AM.

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"