Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-20-2016, 11:31 PM
highrise955 highrise955 is offline Another Sequential Numbering Question (1,2,3a,3b,3c,4,5,6) Windows 10 Another Sequential Numbering Question (1,2,3a,3b,3c,4,5,6) Office 2013
Advanced Beginner
Another Sequential Numbering Question (1,2,3a,3b,3c,4,5,6)
 
Join Date: Mar 2016
Posts: 37
highrise955 is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
If one used a Style-linked multi-level list numbering format, the numbering for both levels could largely take care of itself that way, too. The problem remains though, as to how the code would 'know' when to change Styles.
Quote:
Originally Posted by gmaxey View Post
As far as simply sequencing, I would insert a Seq Field where you want the numbering to appear and then update the field in the table.



However, for your basic question how is your macro supposed to know when the next number should be 3 or 3a? Or how long that sub-sequence should run before 3d becomes 4?
I was thinking that each time the user is asked if they want to add a new dimension...

Code:
If MsgBox("Add a new dimension?", vbQuestion + vbYesNo, "Inspection Report") <> vbYes Then Exit Sub
...the MsgBox can be replaced with a pop-up that gives them the option to continue with "single dimensions" or start a "multi-dimension". So if they select "single dimension" the code would add the next number in the sequence but if they selected "multi-dimension" the next number will have an "a" attached to it.

Then subsequent requests they would be asked to continue "multi" or move to next "single".

As I see it, the code would have to:

  1. Check the current rows number.
  2. Ascertain if a letter precedes the number.
    1. If Yes AND the user selected "Multi", keep the same number and add the next letter in the alphabet.
    2. If No AND the user selected "Multi", add the next number and add the letter "a" to it.
    3. If Yes AND the user selected "Single", add the next number only.
    4. If No AND the user selected "Single", add the next number only.
This would seem straight forward enough, but being a newbie it's a tad bit aggressive for me quite yet. If either of you can continue pointing me in the right direction, it would be most appreciated.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Another Sequential Numbering Question (1,2,3a,3b,3c,4,5,6) How do I do a Sequential Numbering? gburya Word VBA 26 07-04-2017 03:29 PM
Sequential numbering within Word Earthly Way Word VBA 1 12-02-2015 07:36 PM
Another Sequential Numbering Question (1,2,3a,3b,3c,4,5,6) Sequential page numbering im_rusahbh Word VBA 1 12-23-2013 05:28 PM
sequential numbering with macro grstools Word 5 08-15-2013 03:40 PM
Another Sequential Numbering Question (1,2,3a,3b,3c,4,5,6) Sequential Numbering jdwoods Word VBA 7 12-16-2011 05:11 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:36 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft