LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Run Query, then Protect Spreadsheet

Hello,
I'm trying to populate cells from a query where some cells are locked
and the cells I'm populating are unlocked.
However, when I run my macro, I get an error message telling me I can't
do anything w/o unprotecting the spreadsheet.
The macro DOES run if I unprotect the spreadsheet. What can I do to
keep users from modifying the form, but still be able to run the macro
by clicking a button.
FYI... the macro automatically locks unlocked cells after the query is
done. I don't understand why this happens.


---
Message posted from http://www.ExcelForum.com/

 
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
Worksheet protect with query-based table 5GenTexan Excel Discussion (Misc queries) 0 January 25th 10 03:52 PM
Import New Database Query (Union Query) in Spreadsheet klock Excel Discussion (Misc queries) 2 September 24th 09 01:30 AM
protect query from edit Daniel Setting up and Configuration of Excel 0 February 15th 08 12:04 PM
how to protect worksheet from edit my query Daniel Excel Discussion (Misc queries) 0 February 14th 08 07:16 PM
How to protect the query use for a Pivot that uses 'Get External D Javier Excel Discussion (Misc queries) 6 February 4th 05 03:09 PM


All times are GMT +1. The time now is 09:38 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"