How to make an excel macro go to a cell a choose value from list?
I'm trying to "reset" a form using a macro. I can make the macro go to a cell
and make it zero. However, I also need the macro to go to other cells that have drop down menus (used data validation) and choose a value from the menu. This does not work. In fact, if I go to edit, the whole menue thing does not "translate" into code. How can I fix this? Thanks! |
How to make an excel macro go to a cell a choose value from list?
You can assign any value you want to that cell with data|validation:
with activesheet .range("a1").value = 0 .range("B1").clearcontents .range("C1").value = "some value in that dropdown list" End with Tyron wrote: I'm trying to "reset" a form using a macro. I can make the macro go to a cell and make it zero. However, I also need the macro to go to other cells that have drop down menus (used data validation) and choose a value from the menu. This does not work. In fact, if I go to edit, the whole menue thing does not "translate" into code. How can I fix this? Thanks! -- Dave Peterson |
All times are GMT +1. The time now is 11:35 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com