Something like this (untested):

Dim strCellValue as String = myCell.Value.ToString().Replace("page ",
String.Empty)

or, since you problably want an integer, not a string:


Dim iCellValue as Integer = CType(myCell.Value.ToString().Replace("page ",
String.Empty), Integer)

Scott Hutchinson
s.c.o.t.t.h.u.t.c.h.i.n.s.o.n@usa.net
(to contact me, remove all dots left of @)

"Elmosca" <elmosca@terra.es> wrote in message news:3d98b92a@10.1.10.29...
> Hi, I'm newbie. My question is: how can I delete the first letters of a
> string I import (from an excel cell, for instance).
> For example, the cell contains "page 7". How can I import only the "7"
> deleting the first part ("page ")? Any ideas?
>
> TIA
>
>