+ Reply to Thread
Results 1 to 2 of 2

Disable user to insert/delete rows , but enable data refresh

  1. #1
    Registered User
    Join Date
    10-23-2009
    Location
    Helsinki, Finland
    MS-Off Ver
    Excel 2003
    Posts
    3

    Disable user to insert/delete rows , but enable data refresh

    Hey all,

    I have a problem with my excel file.
    I have a query from sql database, from which I fetch the data. It's all good.
    What I would need to do is to disable users modifying the range by adding or deleting rows in excel.
    They are supposed to be doing that in the system, from where I pull the data, not in the excel file.

    I can protect the sheet by allowing them all other stuff but disallowing the adding or deletion of rows.
    That works...but...after this protection, my data refresh fails because of this. Because the data refresh also wants to insert or delete rows.

    Is there a way around this. Disallowing users manually inserting rows , but to allow automatic data refresh to do so.

    Thanks for your response,
    -Jyri-

  2. #2
    Registered User
    Join Date
    12-20-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    88

    Re: Disable user to insert/delete rows , but enable data refresh

    write a macro to unprotect the sheet, update and then protect it again. I have several sheets that do this and it works great.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. enable disable user form option button group
    By bsapaka in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-08-2014, 09:17 PM
  2. enable/disable a command button in User Form w/ condition
    By Bidyut Chakraborty in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2014, 03:11 AM
  3. Disable DrawingObjects but Enable the user to insert comments !
    By sracph in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2013, 05:52 PM
  4. How to disable insert/delete columns & rows?
    By skysurfer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-11-2010, 04:16 PM
  5. Disable - Enable Auto Refresh
    By djfatboyfats in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2009, 06:23 AM
  6. Enable / Disable Auto Refresh
    By mattydalton in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2009, 09:13 AM
  7. [SOLVED] Suppress "Disable/Enable Macros" and Query Refresh dialog on open
    By Sharon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-18-2006, 05:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1