By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,261 Members | 1,317 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,261 IT Pros & Developers. It's quick & easy.

Unshare an Excel sheet with VB.Net

P: n/a
I use the line

XLwkb.ExclusiveAccess()

to unshare the workbook and it works. the problem is it sends up a
prompt for confirmation. When I run this there will be noone around to
confirm it. how do we unshare the workbook without being prompted to
confirm.

I tried
XLwkb.ExclusiveAccess() = True
and that did not work.
I tried
XLwkb.ExclusiveAccess(True)
and
XLwkb.ExclusiveAccess(1)
both those said invalid number of parameters.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Paul, thank you for this post! It allowed me to get around the prompting issue and now everything works great.

From http://www.developmentnow.com/g/38_2...ith-VB-Net.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
Mar 22 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.