+ Reply to Thread
Results 1 to 20 of 20

Dynamically Update Defined Names Range

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Dynamically Update Defined Names Range

    Hi All

    My requirement is to Dynamically update the the range of an defined name when ever there is a change in the range values.

    Have attached sample file for the same.

    Many Thanks for the help in advance.

    Best
    Rem0
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Dynamically Update Defined Names Range

    Hi

    Happy to provide more info if my requirement information is vague and hard to understand.

    Best
    Rem0

  3. #3
    Forum Contributor
    Join Date
    01-30-2013
    Location
    Wales
    MS-Off Ver
    Excel 2013
    Posts
    231

    Re: Dynamically Update Defined Names Range

    As a quick answer, I've just gone to sheet OU and named B24 as WMStart, and B28 as WMEnd. I then went into Name Manager and replaced the cell addresses with the range names for BD_WM.

    Inserting a cell between WMStart and WMEnd and entering anything now means that this new item is included in the drop down list.

    This any good to you?

  4. #4
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Dynamically Update Defined Names Range

    Hi Chris

    Many Thanks for looking in to my query.

    Yes, you were right but my requirement is the data in OU gets updated automatically and records may get removed or added, irrespective of that I want to select the range completely by its defined name range.

    Best
    Rem0

  5. #5
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Dynamically Update Defined Names Range

    Hi

    Can some one look in to this?

    Finding it difficult to make this happen in my project.

    Best
    Rem0

  6. #6
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Dynamically Update Defined Names Range

    Hi

    I'm looking for some help on this?

    Can anyone look in to this.

    Best
    Rem0

  7. #7
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Dynamically Update Defined Names Range

    Hi All

    Any help / guidance will greatly help me.

    Best
    Rem0

  8. #8
    Registered User
    Join Date
    01-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Dynamically Update Defined Names Range

    Hi,

    Try leaving blank rows for future entries. If what you have is a list of values and cannot leave blank rows you may have to create a column for each group to hold all possible options (and blank rows for future entries.) Then in each column put some code to read from the list and pick does that follow the desired pattern.

    hope this helps.
    -Idon

  9. #9
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Dynamically Update Defined Names Range

    Hi Idon

    Thanks!

    My constrain is I will have those values in single column only no option to split to multiple columns.

    Best
    Rem0

  10. #10
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Dynamically Update Defined Names Range

    I'm afraid your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  11. #11
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Dynamically Update Defined Names Range

    Hi JosephP

    Apologies!

    Below is the link to the cross post.

    http://www.vbaexpress.com/forum/showthread.php?t=45185

    Best
    Rem0

  12. #12
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamically Update Defined Names Range

    Only one named range is needed for this. As long as you group the code together the way you're doing so that there is SOME unique string that can be spotted in each group, you can simplify this down to a single Data Validation formula.

    1) Create a named range called Codes the is the entire column B of the OU page.

    2) Put the unique codes in column E. For instance:
    E6: /BS
    E7: /CFG
    E8: /MSB
    E9: /ULT
    E10: /WM

    3) Then the data validation settings in G6 are:

    Allow: List
    Source: =OFFSET(Codes,MATCH("*"&$E6&"*", Codes, 0)-1,,COUNTIF(Codes,"*"&$E6&"*"),)

    Copy that cell downward.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  13. #13
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Dynamically Update Defined Names Range

    Hi Jerry

    You absolutely Nailed it...

    I achieved what I required.

    Thanks a Trillion.

    Best
    Rem0

  14. #14
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamically Update Defined Names Range

    I have marked this thread solved for you.
    In the future please select Thread Tools from the menu above and mark the thread as solved. Thanks.

  15. #15
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Dynamically Update Defined Names Range

    Hi Jerry

    Thanks for notifying, however I would like to re-open the thread.

    The problem I'm facing after implementing the offset formula is the file size.

    The macro-enabled userform I have developed is 750KB and when it is circulated by user only partial of the form will get attached to an email.

    Before using the offset formula, the partial excel file size is only 200kb but after including the offset formula the file size was around 980KB which totally makes the form a failure, as the main agenda of the userform is to have a very small excel file.

    I have googled and found that Offset formula is Volatile and is there a way to tackle this?

    Can you help me?

    Best
    Rem0
    Last edited by Rem0ram; 02-04-2013 at 01:56 PM.

  16. #16
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamically Update Defined Names Range

    A single formula does not quadruple the size of your workbook unless you paste 1000s of them in your workbook.

    Offset is volatile but only in the cells where it is being actively used. Unless you have 1000s and 1000s of them, I don't expect you'll notive a performance drop.

    The sample file I uploaded was less than 50k. What's going on here? You have a something we can actually look at?

  17. #17
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Dynamically Update Defined Names Range

    Hi Jerry

    Have attached the original file, review and advise.

    Have sent the password used as private message to you.

    Best
    Rem0

  18. #18
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamically Update Defined Names Range

    I think you're ascribing effects that coincidental. You've only put a few OFFSET formulas into the Name Manager, so that can't be affecting the file size.

    If I were to hazard a guess, the two reference sheets OU and GEO each have 500 rows of data with some lengthy formulas in them. That's where your growth is coming from.

    But unlike you, I do not equate file size with efficiency. We once had a "form" that went from 300k to 1.5 mb, but it was 30 times more productive in its enlarged version. HD space is at an all-time low, so that's no longer an issue.

  19. #19
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Dynamically Update Defined Names Range

    Hi Jerry

    Thanks Again for the inputs.

    Is there a way to drop the defined names details after generating the email with partial sheets of the form?

    Best
    Rem0

  20. #20
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamically Update Defined Names Range

    Huh, what?

+ 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