If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > inCellDropdown

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-14-04, 08:41
a_wagtmans a_wagtmans is offline
Registered User
 
Join Date: Jul 2004
Posts: 2
inCellDropdown

Hi!

I just started trying to teach myself Visual Basic and already I have encountered my first problem. I have the following script for a data validation dropdown:

With Range("b9:d9").Validation
.Add xlValidateList, xlValidAlertStop, xlBetween, "=AK3:AK6"
.InCellDropdown = True
End With

Now I want to fill the dropdown with values from cells on another sheet. My guess was that I could simply change the second line into

.Add xlValidateList, xlValidAlertStop, xlBetween, "=Sheet1!AK3:AK6"

but this doesn't work. I have tried numerous other formats as well, but without success. Any help would be much appreciated!
Reply With Quote
  #2 (permalink)  
Old 07-14-04, 09:44
MikeTheBike MikeTheBike is offline
Registered User
 
Join Date: Apr 2004
Location: Derbyshire, UK
Posts: 714
Hi

I don't think cell validation can be done with referance to cell in different sheets, but in you can then someone out there will know!

MTB
Reply With Quote
  #3 (permalink)  
Old 07-14-04, 16:20
jlw86 jlw86 is offline
Registered User
 
Join Date: Jul 2004
Posts: 3
hope it helps

If you go to the help in excel and type in: enter in data in a cell from a list you specify. That will explain what you need to know. It will change with the cells that you have selected. So you don't have to worry if the data in the list is being changed.
Reply With Quote
  #4 (permalink)  
Old 07-16-04, 07:41
a_wagtmans a_wagtmans is offline
Registered User
 
Join Date: Jul 2004
Posts: 2
Thanks! That's pretty much what I was looking for.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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