+ Reply to Thread
Results 1 to 13 of 13

Amending the functionality of an old Form

  1. #1
    Forum Contributor
    Join Date
    07-21-2021
    Location
    Norfolk, UK
    MS-Off Ver
    Excel 2003, 2007, 2013, 2019
    Posts
    212

    Amending the functionality of an old Form

    Many years ago I built a form that allowed the user to compare a Master list to a Slave and print out the differences between them.

    MasSlavForm.png

    The functionality of the form allowed the user to identify a cell by its address and evaluate its 'CurrentRegion'. I now want to alter the mechanism for finding suitable regions for comparison.

    In this new environment all suitable regions will have standardised local names, like 'FormulaList' or 'MapKey'. I propose using these local names to identify the regions for comparison.

    I would like advice on how I might amend the Form without having to rebuild it from scratch.
    Regards,

    Stephen

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Amending the functionality of an old Form

    An Excel file and code is mandatory ...!
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Contributor
    Join Date
    07-21-2021
    Location
    Norfolk, UK
    MS-Off Ver
    Excel 2003, 2007, 2013, 2019
    Posts
    212

    Re: Amending the functionality of an old Form

    Quote Originally Posted by PCI View Post
    An Excel file and code is mandatory ...!
    I apologise for taking so long to respond.

    The original form (fmCompList) and its associated code is contained in an Add-In that I built about 20 years ago. This can be downloaded.

    ACBA Tools

    I was looking for advice on how to replicate the form employing local named ranges. You will appreciate that I am perfectly capable of rebuilding the the form from scratch.

    However there are several connected coded elements to the form and I was hoping for advice (not code) on a shortcut to a re-build.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,850

    Re: Amending the functionality of an old Form

    To be absolutely clear: are you asking for help to adapt proprietary code from the add-in? Because if you are, then the licence agreement (do you have one?) may prohibit this.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Amending the functionality of an old Form

    Hi there,

    WOW! Impressive AddIn - more than 15,600 lines of actual code!

    Knee-jerk comment as (perhaps not surprisingly!) I haven't gone through all of the code in detail.

    Would it be useful to replace the various "List Range" TextBoxes with ComboBoxes whose dropdown lists are automatically (Worksheet_Activate event) populated with the Named Ranges contained in the active worksheet?

    Sorry, I know that this is just a comment rather than a chapter-and-verse solution.

    Regards,

    Greg M
    Last edited by Greg M; 07-20-2023 at 05:08 AM. Reason: Typo corrected

  6. #6
    Forum Contributor
    Join Date
    07-21-2021
    Location
    Norfolk, UK
    MS-Off Ver
    Excel 2003, 2007, 2013, 2019
    Posts
    212

    Re: Amending the functionality of an old Form

    Quote Originally Posted by AliGW View Post
    To be absolutely clear:
    ACBA (Allen Computing and Business Analysis) is, or was, me. It is entirely my own code. No licence is required, but if it were the only person authorised give it is me.

  7. #7
    Forum Contributor
    Join Date
    07-21-2021
    Location
    Norfolk, UK
    MS-Off Ver
    Excel 2003, 2007, 2013, 2019
    Posts
    212

    Re: Amending the functionality of an old Form

    Quote Originally Posted by Greg M View Post
    Would it be useful to replace the various "List Range" TextBoxes with ComboBoxes ...?
    Thanks Greg. Yes, I'm hoping that will work. Typically there are ancillary issues that need to be taken into account - for example not all local names refer to lists, so I don't want to include them.

    Stephen

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,850

    Re: Amending the functionality of an old Form

    Quote Originally Posted by swaatacba View Post
    ACBA (Allen Computing and Business Analysis) is, or was, me. It is entirely my own code. No licence is required, but if it were the only person authorised give it is me.
    Thank you for clarifying. Not sure if I should or could have known that, but good to know!

  9. #9
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Amending the functionality of an old Form

    Hi again Stephen,


    for example not all local names refer to lists, so I don't want to include them


    Ok on that. I usually use prefixes to denote what a Defined Name refers to, e.g.:

    tblCategories ...... denotes a table
    ptrUserNames ..... denotes a Range (ptr = Pointer)
    forNoOfNames .... denotes a formula
    iMAX_NAMES ...... denotes a constant integer value


    An approach like that might help you to populate dropdown lists on a more selective basis - just another comment!


    Regards,

    Greg M

  10. #10
    Forum Contributor
    Join Date
    07-21-2021
    Location
    Norfolk, UK
    MS-Off Ver
    Excel 2003, 2007, 2013, 2019
    Posts
    212

    Re: Amending the functionality of an old Form

    Thanks Greg. I'll certainly take that on board.

    Stephen

  11. #11
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Amending the functionality of an old Form

    Hi again Stephen,

    Many thanks for your very prompt feedback and also for the Reputation increase - much appreciated!

    You're welcome - glad you found that suggestion useful.

    This seems like a very interesting project and I'd be glad to know how you're progressing with it, so please send me a private message if you're posting anything else related to it.

    Best regards,

    Greg M

  12. #12
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Amending the functionality of an old Form

    use prefixes to denote what a Defined Name refers
    It's a practice know as Hungarian Notation
    https://en.wikipedia.org/wiki/Hungarian_notation#

  13. #13
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Amending the functionality of an old Form


    It's a practice know as Hungarian Notation

    Indeed so, and one which I use extensively!

    Greg M

+ 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. [SOLVED] Form Control passed as a parameter loses functionality (.Clear method)
    By tfurnivall in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-16-2020, 04:05 PM
  2. Excel Spreadsheet with VBA and Form Controls; Full functionality in Android with Polaris
    By SonOfOdin in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 08-20-2012, 07:18 AM
  3. Amending One Field from Another
    By cgolds in forum Excel General
    Replies: 3
    Last Post: 04-17-2012, 11:59 AM
  4. Help with VBA amending
    By sideshow1987 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2011, 07:32 AM
  5. Search form functionality with combo box
    By kbmtech in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-26-2010, 03:27 PM
  6. Amending Sub totals
    By AK262007 in forum Excel General
    Replies: 1
    Last Post: 05-01-2009, 10:40 AM
  7. [SOLVED] saveto or Submit Form functionality in Excel
    By MLyons10 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-29-2006, 12:50 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