+ Reply to Thread
Results 1 to 6 of 6

VBA Programming assistance required

  1. #1
    Registered User
    Join Date
    03-02-2015
    Location
    Cambridge, England
    MS-Off Ver
    2013
    Posts
    5

    VBA Programming assistance required

    I have a spreadsheet as attached which has a glitch in the programming.

    There are 3 drop down boxes within the form which reference Country, County and Local Authority.

    From selecting which country is relevant this should in turn give a list of counties which are only available to that choice and then the same based on the choice of county for local authority.

    This was all working until i made some modifications to the form to include tender details and dates.

    Could someone please review this and either let me know what I've done wrong or correct the issue.

    For the benefit of anyone reviewing this, there is meant to be blanks above each list so that the drop down can be reset back to nothing.
    Last edited by Bigmiddle; 03-03-2015 at 07:21 AM. Reason: Removal of Old Attachment

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,959

    Re: VBA Programming assistance required

    Your code references a sheet named

    "tender info verification"

    which no longer exists in your workbook. Perhaps you re-named it, in which case you need to correct all your code to the new name.

    Note that it is often better to use the sheet object's codename rather than the text on the tab - for example, the sheet "Country" is Sheet2, so instead of using

    Worksheets("Country").Range.....

    you would use

    Sheet2.Range.....

    You can modify the sheet object's codename in the properties window to give it a meaningful codename, like "shtCountry". Then, if you decide to rename a sheet on its tab, doing so will not affect your existing code.
    Last edited by Bernie Deitrick; 03-02-2015 at 01:27 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    03-02-2015
    Location
    Cambridge, England
    MS-Off Ver
    2013
    Posts
    5

    Re: VBA Programming assistance required

    Bernie,

    Thank you for your assistance, its almost working now.

    Just cant seem to get the Local Authority Drop Down to run automatically.

    Well that and get the drop downs to be anything but blank when i make a selection.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,959

    Re: VBA Programming assistance required

    Your "County" dropdown has the wrong macro assigned (23, not 25), and the Local Autohority dropdown should not have any macro assigned.

  5. #5
    Registered User
    Join Date
    03-02-2015
    Location
    Cambridge, England
    MS-Off Ver
    2013
    Posts
    5

    Re: VBA Programming assistance required

    Cheers Bernie,

    Much Appreciated. Working perfectly now.

  6. #6
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,959

    Re: VBA Programming assistance required

    Great! Happy to hear it, and thanks for posting back.

+ 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. Replies: 0
    Last Post: 10-16-2013, 03:46 AM
  2. Telecommunications Company looking for VBA Programming Partner / Assistance.
    By Robert Locklear in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2013, 03:46 AM
  3. Assistance required
    By Anthony in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2006, 11:10 AM
  4. [SOLVED] Programming Assistance
    By Gsurfdude in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-08-2005, 04: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