LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 135
Default Unprotect sheet to "Refresh All" Access queries

Thanks! That was simple.


"Per Jessen" wrote:

Hi

If I understand you right, add a button from the command button menu to your
sheet and use it to call your macro.

Hopes it helps.

Regards,
Per

"Horatio J. Bilge, Jr." skrev i
meddelelsen ...
I have a worksheet with several access queries.
I protected the worksheet to make sure that data and formulas aren't
changed, then wrote macros to run the queries. I added an unprotect and
protect statement to each macro, and it works great if I run the macros
directly (Tools-Macro-Macros...).

However, when I click "Refresh All" on the External Data toolbar, the
queries won't run because of the protection. If I manually unprotect the
sheet and click "Refresh All" it works fine, but doesn't reprotect the
sheet.



 
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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Excel "Move or Copy" and "Delete" sheet functions dsiama Excel Worksheet Functions 1 December 28th 07 01:57 PM
how do i join 2 "dqy" type queries in excel 2003 Joe Excel Worksheet Functions 1 February 13th 07 07:46 PM
Web Queries and how Excel sees the "selected box" on the web page Pelham Excel Discussion (Misc queries) 0 December 12th 06 03:04 AM
Data Refresh Issues when linking Access queries to Excel Rob Excel Discussion (Misc queries) 0 October 6th 06 06:40 PM


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

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"