Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
for each error
I'm getting a variable not defined error using the following code:
Option Explicit Private Sub UserForm_Activate() For Each cell In Range("cpName") If cell.Value < "" Then lstMnemonic.AddItem cell.Value End If Next cell End Sub The same code works to populate another list box. Why am I getting this error? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Error: "Excel encountered an error and had to remove some formatti | Excel Discussion (Misc queries) | |||
Counting instances of found text (Excel error? Or user error?) | Excel Worksheet Functions | |||
Automation Error, Unknown Error. Error value - 440 | Excel Programming | |||
Syntax Error Runtime Error '424' Object Required | Excel Programming |