Renumbering of the numbers

Hi all

Can someone help me I have a document that contains many said for example that there numberes from 1-100. Here, I want to remove numbers from 1-100 for example say 22, 23 and 23 after the removal of these figures, I want the rest numberes numbering the final number should be 97.

Im trying with the code but cannot find the answer below.

myDoc var = app.activeDocument;

app.findTextPreferences = null;

app.findTextPreferences.findWhat = "^ 9;

app.findTextPreferences.position = Position.SUPERSCRIPT;

var myFound = myDoc.findText ();

change of var = 0;

for (var i = 0; i < myFound.length; i ++) {}

myFound [i] .appliedCharacterStyle = myDoc.characterStyles.item ("Sup");

{If (myFound [i] .appliedCharacterStyle! = {myDoc.characterStyles.item ("Sup"))}

app.changeTextPreferences.changeTo = "" + change;

change ++;

myDoc.changeText ();

}

}

Thanks in advance,

Kind regards

Learner

So you have to get numbers, no numbers, use Grep to find all the numbers: \d+

Find all the numbers and replace their contents with the value of the counter of the loop for. no need to bother with that content really is.

Then you have to work at the end of the numbers found in the beginning because the length of the number wioll change, for example 10 (two digits) can change to 9 (one digit). Like this

app.findGrepPreferences = null;
app.findGrepPreferences.findWhat = '\\d+';
app.findGrepPreferences.position = Position.SUPERSCRIPT;
numbers = myDoc.findGrep();
for (i = numbers.length-1; i > -1; i--){
    numbers[i].contents = String(i+1);
    numbers[i].appliedCharacterStyle = myDoc.characterStyles.item("Sup");
}

Peter

Tags: InDesign

Similar Questions

  • Renumbering of the switchports

    I have a 24PS C3750 which is not in a pile that has my switchports with the numbering system of the FastEthernet4/0/1-24. I'm changing the numbering to FastEthernet1/0/1-24 system. Any help would be greatly appreciated.

    Config mode, you would have to deliver the blow to get renumbered, however you need to restart the switch after

    SW1 renumber (config) 4 1 #switch

  • four digits starting with 1 0001 and not only the numbering.

    How do I re name and renumber a folder of photos and include four numbers starting with 1 0001 and not only the numbering. I need this for an another computer program can keep the images in numeric order

    Now I have number say marriage... 1 Smith_Jones ect up to 659, but a program that I use to create the albumes blurs all my photos because they say the digital system must have 4 digits so number 1 is 0001 so stay in order.  I have d see how to assign 3 zeros on numbers-# 344 front would therefore 0344 LR wants to keep 344.

    In the rename library use the following custom parameters.

  • The numbers won't let me record time

    Hello

    I transferred my data from old iMac (mid-2010/Mavericks) numbers to a new (end 2015/El Capitan). In addition to the fact that I can't use the wonderful version of iWork and I'm stuck with a version with an annoying interface, numbers will not work correctly.

    I have a table to track the interactions I have with my students online. In a column, I record the time spent in particular student tutoring. Although the numbers transferred the old data to the new program, it won't let me enter the duration in. I can't copy and paste. And since I get paid according to time spent, it is a crucial column.

    How can I fix it?

    Thank you

    Kim

    Kim,

    It is always easier to help when you see what you see.  Use this link to help you post a screenshot.  It is safer to remove the personal information from the screenshots.  So duplicate sheet and change called a remove personal information:

    How to post a screenshot on the Apple Discussion Forums

    Explaining what happens when you type in a cell where you try to enter the hour.

  • follow all the numbers listed entirely

    Hello

    in the column on the left side of the iTunes window where it shows for example that number piece is played in a particular selection, on my mac, not every number is registered. Before each issue was the show in its entirety, after that I must have clicked on something accidentally column now looks something like this:

    4271

    4272

    42...

    4274

    42...

    42...

    4277

    It seems to be no regular pattern, the numbers that appear entirely seem to be chosen at random. Another observation is that the column with the number does not have a position, even if I don't remember if that was the case before the problem arose.

    I tried to adjust the size of the column by dragging the column, open iTunes full screen and also removed some categories of view option to create more space for the numbers. Everything I tried had unsuccessfully, unfortunately, can someone point me in the right direction please?

    Thank you

    Someone else posted about it recently. I think there may be a way to adjust the font size in views or somewhere. Also report the problem to Apple:

    http://www.Apple.com/feedback/itunesapp.html

  • How to copy contacts to the numbers

    I use OS X El Capitan and unabl to copy contacts to the numbers that I have already with just drag and drop. Can therefore anymor?

    Yes - I tried. OS X 10.11.6. 3.6.2 numbers; Contacts 9.0

  • Why the numbers app calculates a slightly different result than my calculator?

    If I calculated on my ÷ 41 161 calculator I get 0.2546583851, but I get the numbers 0.2552795031. Why this discrepancy? It is throwing my spreadsheet unhinged as he rounds automatically when we reduce the decimals to 0. Please notify.

    Thank you.

    I don't want to be too technical... but each calculator has a different precision. It depends on the hardware and software of your calculator.

    My advice: trust numbers app.

    Learn more about this :-)

    Update:

    Are you sure you are not cheated? I tried in numbers and the exact result is:

    0.254658385093168

  • Type the numbers 1, 2, 9 and 0 in a website form such as when you create a new note in Evernote web, Firefox jumps to another tab or change the font size.

    In some forms of web (e.g. What strikes a new note in Evernote Web), I can't type the numbers 1, 2, 6, 9, or 0. Typing '1' or '2' jumps out to an another changes in typing "9" or "0" tab open the font size. Type '6' does nothing I can see easily.

    I use OS X 10.9.5 and Firefox 38.0.1. I think that this problem was introduced with Firefox 37, if I'm not completely sure.

    Problem solved. It is the extension of the key configuration.

  • Do the numbers tell me the last date of a cell containing specific text

    Hi guys,.

    I'm setting up a pilot logbook and I need to keep track of when I lead some approaches to the instruments for the purposes of recency.

    For example, the last time I did a VOR approach was April 20, 16.  I need the numbers to recognize the "VOR" text and give me the corresponding date.  I'm having numbers give me this date in a separate table.

    Any ideas on how to do this would be greatly appreciated.

    Thank you!

    Hi Walter,

    This is a roundabout way. Perhaps another user will display a more elegant way.

    Table 1 is a version abridged your journal of driving. Here is table 2:

    Table 2 uses the SIERREUR function to place "" (NULL) if the SEARCH fails to find a match between the value in the header line and an entry in the log of your flight.

    Otherwise, it inserts a value (The FIND returns the starting position of a string in another).

    Now we've found BK VOR (and fill to the right) and SID.

    Columns needed for approaches more more!

    Table 3 is a Date of any cell in table 2 which is not "" (NULL).

    Formula in A2 (and fill down and fill the right)

    = IF(Table 2::A2≠"",Table 1::$A2,"")

    You can type this than = IF (table 2::A2 <>"", Table 1: $A2, "")

    3 numbers will change <>≠

    Formula of the cell footer of table 3 (for column A, then fill to the right)

    = MAX (A)

    To improve the 'presentation', move (copy / paste) 2 Table to another worksheet (TAB). The formulas will adjust automatically.

    Happy flying!

    Kind regards

    Ian.

  • Read a yahoo email group digest is no longer jumps to the numbered emails

    Under the r26.4 by clicking on the numbered message headers made a jump directly to this email. Under the r31, he asked to open the file with (in my case) Firefox. The same email has been tested with both versions on a Win 7 machine and each has the same supplements. There is a new setting, I can't find who controls this?

    It is probably bug 974857 bug 974857 - anchor of the links works not when reading HTML emails (involving IMAP)

  • I can't bid on firefox or explorer. I place the cursor in the quote box, and it will not record the numbers. Can someone please help?

    I can't bid on firefox or explorer. I place the cursor in the quote box, and it will not only record the numbers. Can anyone help please thanks

    Problem solved. My husband came and noticed that the number lock has been deactivated. I can't thank you enough for your help. Hope my solution helps someone else with the same problem.

  • Automation of the numbers for invoices

    Hello

    I want to write a script for the numbers to allow me to create invoices. I want my script to insert a new number (in sequence) whenever I open a new worksheet.

    I tried this script using the page number, but could not get by

    Please help me

    Best regards

    Daryl

    Oops...

  • By the numbers, how do the list tables on the side?

    By the numbers, how do the list tables on the side? It used to be on the side, now it is on the top which is a huge pain.

    This changed in the transition from Numbers2.x too 3.x.

    Unless you explicitly removed numbers 2.x, it is always installed and usable on your computer.  You can locate it in the folder "/ Applications/iWork ' 09.

    You should be aware, that numbers 2.x cannot open files saved numbers 3.x - you can export files from Numers3.x back to Numbers2.x by using the item of menu numbers 3.x "file > export to > number ' 09»

  • Everything my daughter Pat on Firefox, it displays only the numbers, why? yboard types only

    Its keyboard functions normally everywhere outside of Firefox, including other browsers. In the Firefox browser, each keystroke releases only the numbers.

    I'm glad that you have solved the problem after trying safe mode.

    I note the software GuardedID does not seem to be designed to work with Firefox, at least on Windows Vista, by this faq, it is slow: http://www.guardedid.com/support_faq.aspx#EBCDA

    And other FAQ, on the same web page, to mention going out of sync and producing numbers when you type.

    No doubt the other thread you found was: numbers of types only Firefox instead of letters

    I wonder if a better solution to prevent the strikes may have an including installed AV security suite.

  • How to get the numbers to remember a list of answers column on nine or more tables using the same format

    I'm new to numbers but were mainly use it to organize only a simple way to display the cases that arise in a criminal background check. So for a table, I can type driving while license revoked (DWLR) as the load and from there on the charge will fill itself or offer similar responses after typing a single key.  A well appreciated time saver but problems I can sort and summarize the criminal history for 10 people or more at a time and need to do it urgently often.   However when I opened a new table I have to cross and type a new the precise wording of a charge, its disposal (Guilty, voluntary dismissal etc.)  and just know that there is an easy way for the numbers to know in a new table that, if finished it is a list annoyingly long term broken criminal code list and do not have to do that in each new table so that it can take.  I know I'm missing something very basic, but any help would save hours for me and the other poor interns who spend twice as long just to undestand the case and troubleshoot.  Thanks for all the ideas!

    David

    Hi D,

    The AutoComplete feature provides suggestions picked on data entered in the cells above the one you are working in. You can automate the process by preparing a "full menu" table containing ALL the possible inputs for each column in the rows below the header lines.

    The checkbox in cell A1 is a switch, is used to insert the word HIDE in the cell that contains the list of AutoComplete terms. Cells in this area are filled with bright red to draw attention to them when indicated.

    A rule to reorganize (shown and applied below) hiding these lines when the box is checked.

    Hide the lines does not affect the operation of auto-complete, as shown in the table below:

    When the form is competed, action depends on how the result will be recorded and filed.

    If there is no need to edit/modify the file, it can be converted to a PDF using the print dialog. This produces a copy of the displayed part of the document only.

    If the document will require more editing, you can remove the lines containing AutoComplete suggestions. Clear the check box, select all the red lines filled, click the triangle in the row reference tabs and choose Remove.

    Formula in A2 - A10: = IF(A$1,"HIDE","")

    Kind regards

    Barry

Maybe you are looking for