Data | Validation with VBA

M

March

Hello All,

I have created a dropdown list in my excel worksheet.

I want to use VBA to change value(s) of the dropdown list in oreder to build
automated function for my project.

I don't know how to start. Please give me suggestion.


March
 
B

Bob Phillips

If you are using Data validation, the value is in the cell so you can just
overwrite it

Range("B1").value = "the value"

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
M

March

let me tell you more info

I try this one

thisWorkbooks.Worksheets("analysis").Range("G31").Value = iCell

iCells is a value that I get from another worksheet in the same workbook.
When run the program, it says "Object required (Err 424)"

It still does not work.

March
 
M

March

That's ok. I've another solution. Thanks

Bob Phillips said:
If you are using Data validation, the value is in the cell so you can just
overwrite it

Range("B1").value = "the value"

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Top