Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default 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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Choose from list to fill a cell ppidgursky Excel Worksheet Functions 1 February 14th 09 11:23 AM
choose from list to fill cell ppidgursky Excel Worksheet Functions 0 February 14th 09 02:18 AM
Choose from list to fill in a cell ppidgursky Excel Worksheet Functions 0 February 14th 09 12:32 AM
can excel choose a name from a list when I am typing in a cell madisonville Excel Worksheet Functions 1 June 28th 06 03:28 AM


All times are GMT +1. The time now is 05:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"