M
muyBN
The following strScrap variable shows what I want in Intellisense (picks up
the value from a table cell, each column being incremented on each pass of a
while statement) but the Select Case statement doesn't work with the
variable. Anyone see what I'm doing wrong?
strScrap = Left(ActiveDocument.Tables(1).Rows(1).Cells(intCnt).Range,
Len(.Tables(1).Rows(1).Cells(intCnt).Range) - 1)
Select Case strScrap
Case "Lead_ID"
strLead_ID = mbGetCellText(strLead_ID)
the value from a table cell, each column being incremented on each pass of a
while statement) but the Select Case statement doesn't work with the
variable. Anyone see what I'm doing wrong?
strScrap = Left(ActiveDocument.Tables(1).Rows(1).Cells(intCnt).Range,
Len(.Tables(1).Rows(1).Cells(intCnt).Range) - 1)
Select Case strScrap
Case "Lead_ID"
strLead_ID = mbGetCellText(strLead_ID)