+ Reply to Thread
Results 1 to 11 of 11

Drop down list and macro work excel 2010 but not 2007?

  1. #1
    Registered User
    Join Date
    10-27-2010
    Location
    Swansea, Wales
    MS-Off Ver
    Excel 2007
    Posts
    47

    Drop down list and macro work excel 2010 but not 2007?

    Afternoon all,

    I've designed a spreadsheet in excel 2010 that has a dropdown list and a macro attached to a button. These work fine in office 2010 but when another user opens the file using excel 2007, the macro encounters an error and the dropdown arrow has disappeared.

    Any suggestions what I can do to resolve this?

    I've tried changing the macro setting in excel but this didn't work.

    Not sure if this is the correct forum but seeing as a macro was involved I thought I'd try here first!

    Thanks.

  2. #2
    Registered User
    Join Date
    10-27-2010
    Location
    Swansea, Wales
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: Drop down list and macro work excel 2010 but not 2007?

    Has anyone got any suggestions?

    Thanks.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Drop down list and macro work excel 2010 but not 2007?

    I don't think you will receive an answer without some proper infromation.

    What's the code

    What kind of drop down list?

    I suggest that you attach the workbook
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    10-27-2010
    Location
    Swansea, Wales
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: Drop down list and macro work excel 2010 but not 2007?

    Please Login or Register  to view this content.

    Hi Roy, the code above is a bit of the code I'm using. It's freezing up over the xlPivottable14 part - I'm presuming this is not compatible with Excel 2007 but I'm not sure how to get around it.

    I'm a beginner in writing VBA code so forgive me if the above is extremely inefficient.

    As for the drop down list, I can't really paste the whole file as there is a lot of confidential info in there and I can't just send part of it as the file wouldn't work!

    How can I find what type of dropdown list it is? When using 2010 there's a drop down arrow to the right of the cell and you select an option referencing a sheet with a list of choices.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Drop down list and macro work excel 2010 but not 2007?

    Is it Data Validation?

    Select the cell, then have a look in the Data Tab at the Data Validation option. See if there ia validation set for the cell

  6. #6
    Registered User
    Join Date
    10-27-2010
    Location
    Swansea, Wales
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: Drop down list and macro work excel 2010 but not 2007?

    Yes, it seems to be data validation. When I open the file using Excel 2007 and look at data validation it does not reference the list, but it does when opened via 2010.

    Any way to overcome this? Would it work it I added a list using 2007 and saved the file?

    Any thoughts on the problem with the pivot table in the macro code?

    Thanks.

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Drop down list and macro work excel 2010 but not 2007?

    try setting it up in 2007 first

  8. #8
    Registered User
    Join Date
    06-16-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Drop down list and macro work excel 2010 but not 2007?

    I'm having the same issue with data validation btwn 2007 and 2010. I originally created a workbook in 2007, got a new machine w/2010, saved the same wkbook (without touching the data validation) and now users w/2007 can't see the dropdowns!!!

    Does anyone have an answer to this?

  9. #9
    Registered User
    Join Date
    06-16-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Drop down list and macro work excel 2010 but not 2007?

    I just found a work around to this... name the range of cells that the drop-down validation refers to and it should work across excel versions. I can't believe this is required since I sometimes dynamically create such drop downs and will now have to edit significant amounts of code to also dynamically create the named ranges. MS should fix this compatability bug ASAP!!!

  10. #10
    Registered User
    Join Date
    12-14-2011
    Location
    The Netherlands, Maastricht
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Drop down list and macro work excel 2010 but not 2007?

    I found out that Data validation (including macro's) that work in 2010, don't work in 2007. The validation just dissapeared from the cells...
    But I had the List-source in another sheet. When I put everything in Excel 2010 in one sheet, it also works on Excel 2007.
    So this might be a solution for the questions above!

    But I want to add some rules regarding read-only or other security to the drop-down-lists. So it would be easy if the lists can be filled in another sheet.
    Does anybody have an idea?

    Regards,
    Jorik

  11. #11
    Registered User
    Join Date
    11-20-2013
    Location
    Eugene, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Drop down list and macro work excel 2010 but not 2007?

    I had the same situation with disappearing data validation arrows, except between Excel 2010 and 2003 - my excel sheet created in 2010 didn't appear correct in 2003.

    This issue was solved using the solution BGbaum proposed: by using names to delininate my ranges instead of defining the range using something like =$A$12:$A$13. I had success with this even when my named ranges were on a separate worksheet from my data validation lists.

+ 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