+ Reply to Thread
Results 1 to 3 of 3

Insert row VBA query

  1. #1
    Registered User
    Join Date
    03-30-2014
    Location
    UK
    MS-Off Ver
    Excel 2016
    Posts
    24

    Insert row VBA query

    Hi new to this forum and wonder if anyone can help please.

    I wanted to write in VBA to prevent users from deleting rows, but allow them to add rows within Excel. Also wanted to manipulate the insert/delete column.

    This code I managed to find below which seems to works for rows, but it doesn't cater for inserting rows, and further also prevent add/delete insert columns. I did have a play with it to see if I can manipulate it but no joy and wonder can this be manipulated for my intended purposes?

    Please Login or Register  to view this content.
    Any advice greatly appreciated
    Last edited by chungiemo; 03-30-2014 at 04:03 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Insert row VBA query

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    03-30-2014
    Location
    UK
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: Insert row VBA query

    Thanks I was wondering that.

+ 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. Insert into access database sql query
    By sebastienkanj in forum Excel Programming / VBA / Macros
    Replies: 49
    Last Post: 05-31-2013, 11:04 AM
  2. External web query to insert password
    By RossChapman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-28-2013, 04:20 PM
  3. [SOLVED] Range.Insert query
    By erazmus@actrix.co.nz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2005, 08:05 AM
  4. [SOLVED] External web query - insert rows
    By Victoria Johnson via OfficeKB.com in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 04-05-2005, 06:06 PM
  5. External Web query: insert rows?
    By Victoria Johnso in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 04-04-2005, 05:22 PM

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