Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Can I make an Auto_open macro conditional?

I'm a Finance Manager who's written a spreadsheet for users to access latest
list of our nominal, costing and purchase codes. It's got an auto_open macro
which refreshes each list before use. Users save it after each use, so it's
virtually always completely up to date.

But I'd like to "stop" the auto-open macro for second and subsequent
concurrent openings (which are read-only), just to save users time.

Can I do it? ie, make the autoopen conditional on the copy being read only?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 535
Default Can I make an Auto_open macro conditional?

Hi David,

Can I do it? ie, make the autoopen conditional on the copy being read only?


If ThisWorkbook.ReadOnly=True Then Exit sub

Regards,

Jan Karel Pieterse
Excel MVP
http://www.jkp-ads.com
Member of:
Professional Office Developer Association
www.proofficedev.com

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Can I make an Auto_open macro conditional?

Hi Jan

So simple when you know how.

Very many thanks.

David

"Jan Karel Pieterse" wrote:

Hi David,

Can I do it? ie, make the autoopen conditional on the copy being read only?


If ThisWorkbook.ReadOnly=True Then Exit sub

Regards,

Jan Karel Pieterse
Excel MVP
http://www.jkp-ads.com
Member of:
Professional Office Developer Association
www.proofficedev.com


Reply
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
how do i change or make this macro??? pictures and code included dispelthemyth Charts and Charting in Excel 0 March 17th 06 01:02 AM
Macro to Combine 2 columns to make one column without merging JRM Excel Discussion (Misc queries) 1 December 31st 05 08:27 PM
How do I set a date range for conditional formatting in a macro? billo Excel Worksheet Functions 3 February 7th 05 06:19 PM
Conditional Macro Shelley Shepherd via OfficeKB.com Excel Worksheet Functions 1 February 1st 05 05:32 PM
make a conditional format the default Fred Evans Excel Discussion (Misc queries) 3 December 6th 04 05:01 AM


All times are GMT +1. The time now is 06:09 PM.

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"