Solved

Share Workbook with Macro?

Posted on 2009-04-07
3
483 Views
Last Modified: 2013-11-25
Hi Experts-

I have several workbooks that I run simple formatting macros on.  In one of the final macros, I'd like to add code that converts the file to a shared workbook.  Is this possible?  Any help would be appreciated.  Thanks.

Q

P.S. I've tried searching for my answer in the knowledgebase, but wasn't able to find something general enough to be my solution.
0
Comment
Question by:quaziblue
3 Comments
 
LVL 92

Assisted Solution

by:Patrick Matthews
Patrick Matthews earned 125 total points
ID: 24093150
Hello quaziblue,

The consensus opinion of Experts here is that using 'share workbook' should be assiduously
avoided.  This is a poorly implemented feature in Excel that leaves workbooks highly
vulnerable to corruption.  If true multi-user capability truly is needed, then the best practice
is to use a database platform such as Access, SQL Server, MySQL, etc.

Regards,

Patrick
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 175 total points
ID: 24094561
I totally agree with Patrick as regards the reliability of Shared Workbooks but I know that there are situations where you have no choice so, for the record, you could use code like that below. Avoid it if possible though!
Rory

Sub ShareWorkbook()
   Application.DisplayAlerts = False
   ActiveWorkbook.SaveAs ActiveWorkbook.FullName, accessmode:=xlShared
   Application.DisplayAlerts = True
 
End Sub

Open in new window

0
 
LVL 1

Author Closing Comment

by:quaziblue
ID: 31567825
Thanks for the responses.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micr…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question