1004 error on Validation.InCellDropdown

stanleytp

New Member
Joined
Apr 12, 2022
Messages
7
Office Version
  1. 2016
Platform
  1. MacOS
Getting a "1004" error with message "Method 'InCellDropdow' of object 'Validation' failed" (first one). Not getting error on second one embedded in FOR Each........

Range("F24").Interior.ColorIndex = 6
Range("F24").Value = ""
Range("G24").Validation.InCellDropdown = True

For Each cell In Worksheets("ROM").Range("B24:B26")
cell.Offset(0, 1).Interior.ColorIndex = 6 'yellow
cell.Offset(0, 1).Font.ColorIndex = xlColorIndexAutomatic
cell.Font.ColorIndex = xlColorIndexAutomatic 'black
cell.Offset(0, 1).Value = "None"
cell.Offset(0, 1).Validation.InCellDropdown = True
cell.Offset(0, 1).Validation.ShowError = True
Next cell

Any thoughts?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,216,555
Messages
6,131,372
Members
449,646
Latest member
dwalls

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top