View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Shlomit Shlomit is offline
external usenet poster
 
Posts: 10
Default Find next ID in non sort column

Hi,
I have sheet with column A the values in the column a
ss001
ss002
hh001
hh005
ss003
The values are ID. I want to find the next ID according to the prefix.
In the above example the next ID when prefix 'ss' is '22004' and when prefix
is 'hh' the next ID is 'hh006'
How can I do it in the code ? (VBA+excel) How I find the next ID?