ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   advise if active workbook is read only (https://www.excelbanter.com/excel-programming/422412-advise-if-active-workbook-read-only.html)

EXCELMACROS

advise if active workbook is read only
 
Hello guys,

I have more than one user using the same SS, I want to begin my macro with a
condition,

if ActiveWorkbook is readonly then
msgbox("abc")
exit sub
else
.... my macro
end if

Thank you in advance,
--
Thank you...

EXCELMACROS

advise if active workbook is read only
 
found it on

http://support.microsoft.com/default.aspx/kb/153058

thanks,
--
Thank you...


"EXCELMACROS" wrote:

Hello guys,

I have more than one user using the same SS, I want to begin my macro with a
condition,

if ActiveWorkbook is readonly then
msgbox("abc")
exit sub
else
... my macro
end if

Thank you in advance,
--
Thank you...



All times are GMT +1. The time now is 11:18 PM.

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