+ Reply to Thread
Results 1 to 2 of 2

Make a range dynamic for edition!

  1. #1
    Registered User
    Join Date
    06-29-2016
    Location
    Ireland
    MS-Off Ver
    2019
    Posts
    47

    Make a range dynamic for edition!

    Gents,

    Recently I was wonderfully replied in a post called "Restrict VBA execution to a range o cells!".

    Shortly explaining, I wanted to restrict the use of a few macros to a certain range C28:I32 that constitutes a "section". The macros include adding, copying and deleting lines where the cells are selected within this section. I cannot allow these macros outside this section or all hells break loose but I eventually need these macros to take action on this section after new addition or deletion of lines (e.g. C28:I34 or C28:I31).

    In fact, what I needed was that this section was C28:I?? where the I?? cell corresponds to what initially is I34 minus 2 cells up.

    HTML Code: 
    How can I make this section "dynamic"! I've been trying with named ranges and offset but unsuccessfully.

    Regards,


    Ricardo
    Last edited by Hellion; 11-25-2016 at 01:36 PM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Make a range dynamic for edition!

    Hi Ricardo

    Please attach a sample workbook the Structure of which is the same as your actual workbook.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    INCLUDE ANY CODE YOU'RE USING OR HAVE TRIED.

    Remember to desensitize the data.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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. Make 'ActiveSheet.Range("C5:N100").Select' - select a dynamic range of cells
    By white_ross in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-13-2016, 10:00 AM
  2. [SOLVED] HOw to make a chart range dynamic
    By ammartino44 in forum Excel General
    Replies: 7
    Last Post: 09-21-2015, 02:06 PM
  3. How to make a dynamic range with multiple tables on sheet?
    By AlexRM in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-02-2015, 08:32 PM
  4. How to make a Chart using a dynamic range?? (Need Macro?)
    By jaredmccullough in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-10-2014, 03:50 PM
  5. how to print using combobox and make dynamic range of a print area
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-04-2014, 07:26 AM
  6. How should I make a SUMIF w/ dynamic range?
    By jwright650 in forum Excel General
    Replies: 8
    Last Post: 03-21-2014, 06:29 AM
  7. How do you make an open-ended/dynamic range?
    By kestefon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-13-2013, 01:36 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