E
Eric
Does anyone have any suggestions on what wrong the coding is?
The variable temp is "1 " instead of "1", does anyone have any suggestions
on where the space comes from? The retrieved value should be returned "1"
Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric
Set wsDate = Sheets("Date")
For lngRow = 2 To wsDate.Range("H1").Value
If Not SheetExists(wsDate.Range("A" & lngRow)) Then
Set ws = Sheets.Add(After:=Sheets(Sheets.Count))
ws.Name = wsDate.Range("A" & lngRow)
Else
temp = wsDate.Range("A" & lngRow).Text \ temp is "1 " instead of "1"
Set ws = Sheets(wsDate.Range("A" & lngRow).Text)
End If
The variable temp is "1 " instead of "1", does anyone have any suggestions
on where the space comes from? The retrieved value should be returned "1"
Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric
Set wsDate = Sheets("Date")
For lngRow = 2 To wsDate.Range("H1").Value
If Not SheetExists(wsDate.Range("A" & lngRow)) Then
Set ws = Sheets.Add(After:=Sheets(Sheets.Count))
ws.Name = wsDate.Range("A" & lngRow)
Else
temp = wsDate.Range("A" & lngRow).Text \ temp is "1 " instead of "1"
Set ws = Sheets(wsDate.Range("A" & lngRow).Text)
End If