K
Karen53
Hi,
I have cells which contain text. The cells are formated as text. However
the text in these cells can appear to be a date even though they are not, for
example 3-11-09. How do I keep the date formated as text error form
happening and erroring out my code? I need it to disregard that it looks
like a date and just treat it like text.
If MainPagepg.Range("BD" & Newrow - 1) = "" Then
ShNumber = Firstpg.Index
Else
AfterShName = MainPagepg.Range("BD" & Newrow - 1).Value
ShNumber = Sheets(AfterShName).Index
End If
CAMMaster.Copy After:=Sheets(ShNumber)
I have cells which contain text. The cells are formated as text. However
the text in these cells can appear to be a date even though they are not, for
example 3-11-09. How do I keep the date formated as text error form
happening and erroring out my code? I need it to disregard that it looks
like a date and just treat it like text.
If MainPagepg.Range("BD" & Newrow - 1) = "" Then
ShNumber = Firstpg.Index
Else
AfterShName = MainPagepg.Range("BD" & Newrow - 1).Value
ShNumber = Sheets(AfterShName).Index
End If
CAMMaster.Copy After:=Sheets(ShNumber)