I don't think this is what I am looking for. I want to do something like this,
If Cell 5,7 is " " then goto... meaning another part of the code to
continue.
So what I am trying to do is have the macro look at a cell determine if
there is a number in it, if not move to another part of the code to continue
the macro.
Thank you
> Hi Doc60,
>
[quoted text clipped - 20 lines]
>
> Vista Small Business, Office XP
Helmut Weber - 11 Feb 2008 15:34 GMT
Hi Doc60,
maybe something along these lines:
Sub Macro2()
Dim oTbl As Table
Dim sTmp As String
Set oTbl = ActiveDocument.Tables(1)
With oTbl
sTmp = .Cell(2, 2).Range.Text
sTmp = Left(sTmp, Len(sTmp) - 2)
If IsNumeric(sTmp) Then
MsgBox "number"
' your code
Else
' do nothing or whatever
End If
End With
End Sub
Though numbers aren't just digits,
e.g "2E3" is numeric!
--
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Vista Small Business, Office XP