LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Convert a wokbook to shared mode

Hi Dave,

Thank you for responding.

I stumbled onto the cause of the problem.

Note the extra "\" following "Project" in the path name below

\\Serverone\files\Projects\\Telular Corporation\1222-SX6P REWORK

Excel does not like that extra "\" when trying to share the workbook. I
removed the "\" and all is well.

Thanks again.

Don
--
Don


"Dave Peterson" wrote:

Your code worked fine for me in my tests:

Option Explicit
Sub testme()

Dim myProjectFolder As String
Dim myProject As String

myProject = "book99.xls"
myProjectFolder = "C:\my documents\excel\"

With ActiveWorkbook
.KeepChangeHistory = True
.ChangeHistoryDuration = 1

.SaveAs Filename:= _
myProjectFolder & myProject, AccessMode:=xlShared
End With
End Sub

Are you sure your variables point at the correct names/locations?

Is the correct workbook active?

What happens when you run your code--error messages??????



Don Rouse wrote:

I have shared workbooks. My code can unshare the workbook to unprotect
sheets and add named ranges. But I cannot convert the workbook back to
shared mode.

Can you help?

Here is the code I have written to put the workbook back into shared mode,
but it doesn't work. What am I doiung wrong?

With ActiveWorkbook
.KeepChangeHistory = True
.ChangeHistoryDuration = 1
End With
ActiveWorkbook.SaveAs Filename:= _
myProjectFolder & myProject , AccessMode:=xlShared
ActiveWindow.Close

Thank you for your assistance.
--
Don


--

Dave Peterson

 
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
Disappearing comments in shared mode Kaylee Excel Discussion (Misc queries) 0 September 5th 08 10:24 PM
Split Wokbook Wanna Learn Excel Discussion (Misc queries) 2 April 18th 08 01:54 PM
Keeping Margins and Forcing Landscape mode on a shared Document Howie Excel Discussion (Misc queries) 1 September 25th 07 02:36 PM
Problem with file in "Shared Mode" [email protected] Excel Discussion (Misc queries) 0 March 4th 05 06:43 AM
how open dbf in shared mode? Sandra Excel Programming 0 November 16th 04 09:40 AM


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