ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   shared file ! (https://www.excelbanter.com/excel-programming/429970-shared-file.html)

fi.or.jp.de

shared file !
 
Hi All,

Is there any vba code to know whether the active workbook is shared
or
not ?


like this .....
if activeworkbook is shared then
msgbox "you file is shared, remove share"
else
"my code goes here....."
end if


thanks in advance.





Jim Thomlinson

shared file !
 
if ActiveWorkbook.MultiUserEditing then
msgbox "... "

--
HTH...

Jim Thomlinson


"fi.or.jp.de" wrote:

Hi All,

Is there any vba code to know whether the active workbook is shared
or
not ?


like this .....
if activeworkbook is shared then
msgbox "you file is shared, remove share"
else
"my code goes here....."
end if


thanks in advance.






fi.or.jp.de

shared file !
 
Thanks a lot Jim


On Jun 17, 5:19*pm, Jim Thomlinson <James_Thomlin...@owfg-Re-Move-
This-.com wrote:
if ActiveWorkbook.MultiUserEditing then
*msgbox "... * "

--
HTH...

Jim Thomlinson



"fi.or.jp.de" wrote:
Hi All,


Is there any vba code to know whether the active workbook is shared
or
not ?


like this .....
* * * *if activeworkbook is shared then
* * * * * * *msgbox "you file is shared, remove share"
* * * else
* * * * * "my code goes here....."
* * * end if


thanks in advance.- Hide quoted text -


- Show quoted text -




All times are GMT +1. The time now is 04:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com