How can i get the current number of word in paragraph?

I have cursor set on some word in Para. And i'd like to make italic all words before it. How can i get the number of current word in collection Words in mInd.Selection.Item(1)?

Hi Dmitry1776,
Try something like this:
Set myInsertionPoint = myInDesign.Selection.Item(1)
Set myStory = myInsertionPoint.ParentStory
Set myStartCharacter = myStory.Characters.Item(myInsertionPoint.Paragraphs.Item(1).Index)
Set myCharacter = myStory.Characters.Item(myInsertionPoint.Index)
Set myEndCharacter = myStory.Characters.Item(myCharacter.Words.Item(1).Index - 1)
Set myText = myInsertionPoint.ParentStory.Texts.ItemByRange(myStartCharacter, myEndCharacter).Item(1)
...at this point, myText is a range of text from the start of the paragraph to just before the text containing the insertion point.
Thanks,
Ole

Similar Messages

  • I have lost my iphone, how can i get the IMEI number?

    i have lost my iphone, how can i get the IMEI number?

    If you need the IMEI for an insurance or police report:
    how to find IMEI, etc
    http://support.apple.com/kb/HT4061?viewlocale=en_US&locale=en_US
    But as Carolyn Samit said above, you cannot track the iPhone by IMEI.

  • How can I get the current user an  resource context  in a portal JSPDynPag

    How can I get the current user (com.sapportals.portal.security.usermanagement.IUser?)an the resource context  in a portal component (JSPDynPage)?
    Thanks.

    Hi Jon,
    Here is the code to get the current user and resource context in your JSPDynPage:
    IPortalComponentRequest  currentRequest  = (IPortalComponentRequest)pageContext.getAttribute(javax.servlet.jsp.PageContext.REQUEST);
    com.sapportals.portal.security.usermanagement.IUser contextUser = (com.sapportals.portal.security.usermanagement.IUser) currentRequest.getUser().getUser();
    ResourceContext resourceContext = new ResourceContext(contextUser);
    Greetings,
    Praveen Gudapati
    p.s. points are always welcome for helpful answers

  • I won Lightroom 1.0 a few years ago at an Adobe clinic in Fremont. I have since misplaced the original disk and cannot get the program to open. It wants a serial number and I don't have one. How can I get the serial number so I can use the software?

    I won Lightroom 1.0 as a door prize a few years ago at an Adobe clinic in Fremont. I have since misplaced the original disk and cannot get the program to open. It wants a serial number and I don't have one. How can I get the serial number so I can use the software?

    Thanks for replying, Jim. I wasn't planning to use it for raw images. I shoot film, black and white, and have many negatives I want to print. I am unfamiliar with the upgrades in Lightroom. I wasn't unhappy with the version I have. It was useful for my purposes.
    Because it was a few years ago, I don't remember if I registered the product. I was able to login to my account. But could not find a path to communicate with Adobe. I will keep trying.
    Ken

  • How can I get the serial number for Premiere 11?

    In october 2012 I´ve bought a bundle pack with Photoshop Elements 11 and Premiere 11. After a hard disk crash i was about to reinstall them both but my wife has trown the envelope in the garbage... = No Serial number available!!
    I´ve registered the serial number for Photoshop Element 11 on Adobe, but not the key for Premiere (they are on the same dvd).
    How can I get the serial number for Premiere 11?

    I do not think there is any way for anyone here to help you (we are just other users) so you are going to have to contact Adobe
    Forum for Download & Install & Setup problems
    http://forums.adobe.com/community/download_install_setup
    Chat http://www.adobe.com/support/download-install/supportinfo/
    -or http://www.adobe.com/support/chat/ivrchat.html
    And tell your wife to be more careful about throwing things away

  • Did i buy Adobe Photoshop & Adobe premiere elments but uTrshed  the box before instalation how can i get the serial number?

    did i buy Adobe Photoshop & Adobe premiere elments but uTrshed the box before instalation how can i get the serial number?

    I suggest that you Contact Customer Care - click on the Still need help? button to chat with an agent.

  • How can I get the serial number for registration and instalation?

    Hello ,How can I get the serial number for registration and instalation?

    contact your local sales representative.
    You don't need a serial number to install LabVIEW.
    Registration is optional.
    Activation is needed after the evaluation period.
    Install it without number and it will work for a limited time (30days?) in evaluation mode, giving you plenty of time to decide if you want to buy it.
    Check the license manager to see the activation status of everything installed.
    LabVIEW Champion . Do more with less code and in less time .

  • HT4061 If I have my iphone4 lost, but I still have the serial number and IMEI number, how can I get the ICCID number?

    If I have my iphone4 lost, but I still have the serial number and IMEI number, how can I get the ICCID number?

    You can't.

  • My iphone was stolen and called police. Now the ditective needs to know my IMEI number. I need to know the number of the stolen one. How can I get the IMEI number?

    My iphone was stolen and called police. Now the ditective needs to know my IMEI number.I need to know the number of the stolen one. How can I get the IMEI number?                   

    Quickest place to look is in the label attached to the box the phone came in.
    Not around anymore? Maybe the carrier you used the phone with can facilitate the information. Also, when under contract, the IMEI is listed in the paperwork. Apple, alas, is quite unhelpful with that information.

  • How can I get the serial Number of...

    How can I get the serial Number of Table whether or the hardware and the serial Number Windows?

    There most be a way, becouse if you will got to this game site:
    http://en.dinorpg.com/ and try to register more then 3 times, you will get
    an error that you can only have 3 acount on one computer. Even if you will
    reinstall your windows version you still get the same error. If they can do
    it so there most be a way.
    2009/8/20 Greg Lafrance <[email protected]>
    You can't access such info from Flex/AIR apps. There's just no way.
    >
    If this post answered your question or helped, please mark it as such.
    >

  • How can I get the ID number of an attribute, based on the name string?

    In an IVI driver, how can I get the list of attributes of an instrument? Is there a way to retrieve the long type representation of an attribute ID, based on the string name? Say, I put "IVIDMM_ATTR_FUNCTION", and I receive the long number (i.e. 1150010), so I can call the SetAttribute function?
    Thanks.

    Hello-
    Tokens like IVIDMM_ATTR_FUNCTION are actually macros that have been #define'd in a header file. Many of the headers are found in C:\VXIPNP\WIN95\include. For example, the macro for IVIDMM_ATTR_FUNCTION is found on line 111 of ividmm.h.
    Randy Solomonson
    Application Engineer
    National Instruments

  • How can I get the SERIAL NUMBER after an INSERT

    I am working on an application using Jdk1.2 connecting to an Oracle 8i
    Database. The JDBC driver that I am using is Oracle's thin driver.
    In the DB, I have a table that has a primary key as a sequence number.
    Upon inserting a single row into this table, how can I get this serial
    number that is generated by the Database.
    Previously I was using INFORMIX database and welogic's JDBC drivers and this
    is how I get the serial number.
    PreparedStatement ps = ...
    ps.setObject(......);
    ps.executeUpdate();
    int snumber =
    (weblogic.jdbc.informix4.Statement) ps.getSerialNumer()
    Similarly I have tried to use
    (oracle.jdbc.driver.OracleStatement) ps.getSerialNumber()
    But this method does not exist in the JDBC thin drivers.
    Is there some other way to get this serial number.
    Thanks,
    Suresh
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by syalaman:
    I am working on an application using Jdk1.2 connecting to an Oracle 8i
    Database. The JDBC driver that I am using is Oracle's thin driver.
    In the DB, I have a table that has a primary key as a sequence number.
    Upon inserting a single row into this table, how can I get this serial
    number that is generated by the Database.
    Previously I was using INFORMIX database and welogic's JDBC drivers and this
    is how I get the serial number.
    PreparedStatement ps = ...
    ps.setObject(......);
    ps.executeUpdate();
    int snumber =
    (weblogic.jdbc.informix4.Statement) ps.getSerialNumer()
    Similarly I have tried to use
    (oracle.jdbc.driver.OracleStatement) ps.getSerialNumber()
    But this method does not exist in the JDBC thin drivers.
    Is there some other way to get this serial number.
    Thanks,
    Suresh
    <HR></BLOCKQUOTE>
    ========================================
    ORACLE don't support serial number as Informix, but you can create sequence table
    and every time get the next value from this table.
    null

  • HT1349 My Ipad was stolen, How can I get the serial Number from Apple. It was registered with them

    I had  2 Ipads, a mac book pro and a Mac Air stolen 2 weeks ago
    I am trying to locate one of the serial numbers, but cant find the last box.  Can I get the serial number from Apple. It was registered and now it is not showing up as one of my products.
    Thanks

    The easiest way to find your serial number is this Open Itunes...click help... run diagnostics.....(tick or untick as necessary) so that you just have ticked the last two,  device connectivity and device sync.  run these tests. it will say no ipod/ipad found but will give results of test....scroll down to bottom of results... here you will find the serial number of your last attached devices.

  • HOW CAN I GET THE IMEI NUMBER OF MY LOST BBZ10?

    HI,
    MY BB-Z10 WAS STOLEN YESTERDAY.
    I DON'T HAVE THE IMEI OF THE HANDSET.
    HOW CAN I GET THE IMEI NO. OF THAT HANDSET.
    CAN THE BLACKBERRY TEAM HELP ME TRACKING MY HANDSET?

    No.

  • TS4000 how can i get the serial number of a lost iphone?

    Can i get the serial number of my lost iphone 5?

    Welcome to Apple Support Communities
    If you registered it with your Apple ID, open http://supportprofile.apple.com and log in with your Apple ID, so you will see the serial number. The serial number is in the box, too.
    <edited by host>

Maybe you are looking for