+ Reply to Thread
Results 1 to 3 of 3

Attempting to exlude the ability to add a row outside of a named range

  1. #1
    Forum Contributor
    Join Date
    09-21-2012
    Location
    illinois
    MS-Off Ver
    Excel 2010
    Posts
    242

    Attempting to exlude the ability to add a row outside of a named range

    I have a macro that inserts rows. The problem I am having is that I want to limit where they put the rows to an area. The code I was attempting to use was this

    Please Login or Register  to view this content.
    and it does not work. Any ideas?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Attempting to exlude the ability to add a row outside of a named range

    Intersect returns a range or Nothing, not True or False.

    This will check if the active cell is in 'AcceptableArea' and if it is execute the insert row code.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    09-21-2012
    Location
    illinois
    MS-Off Ver
    Excel 2010
    Posts
    242

    Re: Attempting to exlude the ability to add a row outside of a named range

    That worked great thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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