Solved

Why does my form button & data validation drop-down list disappear?

Posted on 2010-09-08
7
1,070 Views
Last Modified: 2012-05-10
I have a file with VBA code and a Forms Button that starts a macro.  I also have a drop-down data validation list throughout a range of cells.

Several people use this file one at a time (no sharing).

However, the file is getting corrupted on their ends constantly whereby the data validation drop-down list disappears (not even the little arrow appears (althought the Input Message box is still there).  AND, the forms button just disappears.

All the VBA code remains in tact.

Any ideas what is causing this sever error? With the "Administration" button & Data Validation Deleted "Administration" button & Data Validation Drop is gone
0
Comment
Question by:HaimD
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 13

Expert Comment

by:gbanik
ID: 33631991
The Validation Rule that creates the Drop Down is getting corrupted maybe due to addition or deletion of columns/rows.

In order to ensure that the dropdown is always intact, on WorkBook_Open event, rewrite the validation rule to recreate the drop down everytime the workbook is opened.

...Enjoy!
0
 
LVL 10

Assisted Solution

by:SANTABABY
SANTABABY earned 150 total points
ID: 33632012
Without seeing a reproduction of your issue it is hard to comment, however below is my 2 cents:

If your data especially the ranges (if any) that are used in the validation criteria are changed, your validations may partially work or may even stop working. Insert/Delete of rows, columns, cells are the likely cause.
Please make sure that the data that drive your validation are well protected.

0
 
LVL 81

Accepted Solution

by:
byundt earned 350 total points
ID: 33632519
Do you have any code that deletes shape objects from the worksheet? The little arrow for the data validation dropdown is a shape object. Once you delete it, it cannot be restored. You will need to transfer your data to a new worksheet.

If you have a separate forms control command button, it too is a shape object.

Having encountered this problem the hard way, I have learned to test the type property of shape objects before deleting them if using a block of code that loops through all the shape objects on a worksheet.

Brad
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:HaimD
ID: 33666367
Hi guys,
I checked all 3 of your solutions, but none of them are the case.  I have new infomration however from the users that the error they are getting is:
"File Error: Data May Have Been Lost"
The only loss is the drop-down arrow and the button itself (as in my original post).  However, I cannot reset/re-do the data validation.  The drop-down just doesn't come back.  I must always restore the file, or...
The only way to fix the drop-down is to "Open and Repair" the file on open.  The arrows reappear, but the button is still gone forever.  (I think I could write code to place it back, no?)  Or, why is it too dissappearing?  I really would rather avoid writing more code to "fix this...
Any ideas?
0
 

Assisted Solution

by:HaimD
HaimD earned 0 total points
ID: 33915361
There was something in my coding (I changed too many things at once to be able to pinpoint what it was) that was causing this to happen.  But nothing necessarily as from recommended solutions.
0
 

Author Comment

by:HaimD
ID: 33915374
Please allow me to award points by removing this auto close sequence.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question