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

I am using the following code to set my workbook in a sharedworkbook mode.

Application.DisplayAlerts = False
'
Windows("JAX_PassCounts_v0.9.8.xls").Activate
With ActiveWorkbook
.ConflictResolution = xlLocalSessionChanges
.KeepChangeHistory = False
End With
ActiveWorkbook.SaveAs Filename:= _
"\\nsusfla90ce01\cost$\OST\PASSCOUNTS\JAX_PassCoun ts_v0.9.8.xls",
AccessMode:=xlShared
'
Application.DisplayAlerts = True

I keep getting an error "Cannot access 'JAX_PassCounts_v0.9.8.xls'.
I have verified the path and file names are correct and viable. This code
use to work with no problems. What can I do to get it to work now? I have not
changed anything sense I first worte it with help from this forum.

Thanks for your help again!
--
Stephen
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default Share Workbook

Try

Workbooks("JAX_PassCounts_v0.9.8.xls").Activate


--
__________________________________
HTH

Bob

"Stephen sjw_ost" wrote in message
...
I am using the following code to set my workbook in a sharedworkbook mode.

Application.DisplayAlerts = False
'
Windows("JAX_PassCounts_v0.9.8.xls").Activate
With ActiveWorkbook
.ConflictResolution = xlLocalSessionChanges
.KeepChangeHistory = False
End With
ActiveWorkbook.SaveAs Filename:= _
"\\nsusfla90ce01\cost$\OST\PASSCOUNTS\JAX_PassCoun ts_v0.9.8.xls",
AccessMode:=xlShared
'
Application.DisplayAlerts = True

I keep getting an error "Cannot access 'JAX_PassCounts_v0.9.8.xls'.
I have verified the path and file names are correct and viable. This code
use to work with no problems. What can I do to get it to work now? I have
not
changed anything sense I first worte it with help from this forum.

Thanks for your help again!
--
Stephen



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
Share a workbook Patrick[_3_] Excel Worksheet Functions 0 March 29th 10 10:25 PM
How can I share and un-share a workbook using a macro? Botter Excel Programming 2 October 4th 06 06:39 PM
Share workbook Leentje Excel Programming 0 August 8th 06 10:25 AM
Can't share workbook. The "Share Workbook" option is off. Why? Doyle Diener Excel Discussion (Misc queries) 4 April 24th 06 06:56 PM
Share workbook Calculate Date range Excel Worksheet Functions 0 September 21st 05 02:55 AM


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