Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2007

Tip: Looking for answers? Try searching our database.

Incrementing a string

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Francis Hookham - 22 Sep 2007 16:30 GMT
Column C contains string IDs with a varying number of blank cells between
each.

Having found the last entry in column E with:

iDoorRow = Sheets("Pages").Cells(Rows.Count, 5).End(xlUp).Row

sDoorName = Sheets("Pages").Cells(iDoorRow, 5)

How can I increment the string (sDoorName)  (in this case D02-003)  to
D02-004?
Then I can prompt the user to confirm that as the next door or to type in
D03-001 to start the next sequence.

Francis Hookham

---------------------------------------------------------------------------

D01-001

D01-002

D01-003

D01-004

D01-004a

D01-005

D02-001

D02-002

D02-003
Jay Freedman - 22 Sep 2007 18:02 GMT
Hi Francis,

You're posting another Excel question in the Word VBA group. Please
get into the habit of verifying the group name before sending a post.

>Column C contains string IDs with a varying number of blank cells between
>each.
[quoted text clipped - 31 lines]
>
>D02-003

--
Regards,
Jay Freedman
Microsoft Word MVP        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
Francis Hookham - 23 Sep 2007 08:59 GMT
Ops! Sorry, I thought I had - it's me age!
I'll make sure hen I repost the question.
Francis

> Hi Francis,
>
[quoted text clipped - 43 lines]
> Email cannot be acknowledged; please post all follow-ups to the newsgroup
> so all may benefit.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.