+ Reply to Thread
Results 1 to 3 of 3

Preventing inserts

  1. #1
    Registered User
    Join Date
    03-30-2006
    Posts
    7

    Preventing inserts

    I am instantiating Excel 2003 from vb.net and populating the spreadsheet from SQL. The workbook itself will be maintained even when the .Net program is inactive (so that the column headers are established and saved.)

    Is it possible to prevent the users from inserting columns within a certain range?

    If so, how is this best done?


    Thanks for all help.
    Last edited by LadyReader; 01-07-2010 at 05:59 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Preventing inserts

    Hi, when you protect the worksheet, you can select to allow or disallow insertion/deletion of columns. But I think this is a setting that applies for the whole sheet, so you cannot allow insertion in one area of the spreadsheet and disallow in another. It would be possible to create a macro that checks if the active column is in the allowed range, then unprotects the worksheet, inserts the column and protects the sheet again.

  3. #3
    Registered User
    Join Date
    03-30-2006
    Posts
    7

    Re: Preventing inserts

    Thanks for answering the qustion and also warning me about the limitations of "Protect"!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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