+ Reply to Thread
Results 1 to 6 of 6

xlcelltypeAllValidation not working

  1. #1
    Registered User
    Join Date
    06-04-2013
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    2

    xlcelltypeAllValidation not working

    so a bit of background as to what im trying to acheive here:

    I want a peice of code that runs through all cells & finds every cell with a drop down in. Now the below seems to work but on occassions it doesnt show some cells that have validation(drop down) in them:

    activesheet.usedrange.SpecialCells(xlCellTypeAllValidation).Address

    any idea why the above is not working?

    If anyone could suggest a better way of finding all drop down cells using VBA that would be great

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: xlcelltypeAllValidation not working

    Try this..

    Please Login or Register  to view this content.
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: xlcelltypeAllValidation not working

    You need to catch the error if there are no cells present

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    06-04-2013
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: xlcelltypeAllValidation not working

    Thanks for this. I have now found the issue

  5. #5
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: xlcelltypeAllValidation not working

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  6. #6
    Registered User
    Join Date
    07-09-2015
    Location
    klein-Paris
    MS-Off Ver
    2013
    Posts
    1

    Re: xlcelltypeAllValidation not working

    Hello Excel-Fans,

    in Excel 2013 the posted Code don't work, all cells in area are selected; in Excel 2010 is it perfect. But in Excel 2013 don't correct.
    What's the matter here?

    ask Luschi from klein-Paris (germany)

+ 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. Correct/Working (Index,Match) formula not working between cells
    By barnerd in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-11-2014, 01:20 PM
  2. Replies: 4
    Last Post: 09-03-2013, 02:52 AM
  3. Replies: 2
    Last Post: 08-17-2012, 08:16 AM
  4. Re : Excel Event Worksheet_Change Shuns SpecialCells(xlCellTypeAllValidation
    By tkt_tang@hotmail.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-21-2006, 01:40 PM
  5. Replies: 1
    Last Post: 01-26-2005, 04:20 AM

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