Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Excel 2010 Dynamic Range using VBA

  • 04-05-2012 1:16pm
    #1
    Closed Accounts Posts: 2


    Hi All,

    I have a table where some fields must be filled in. So to achieve this I've used ranges to stop the user exiting if certain fields aren't filled. A warning appears saying which fields are to be filled, and these fields are highlighted. So that's OK, when the table is static that is.

    But I need this to work with a dynamic table too. So when the table is expanded it should also check the values of these new rows, and when records are deleted it should note that the table is x amount less and therefore not stop exit or highlight those empty rows.

    So to summarize, question is: using ranges in vba and have range
    Set RngDistrictA = Sheets("Table 1").Range("B6:D70")
    And I need a way for "D70" to change with the size of the table

    Note: Expanding the table would only be in terms of rows and not columns.


    Thanks in advance.


Advertisement