+ Reply to Thread
Results 1 to 11 of 11

word format

  1. #1
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    word format

    dear sir

    we copy from website and the word cannot identify by my vba code formula.

    That is vba code can identify by the word format of "write by hand" but cannot identify by word format of "word
    copy from website"

    pls help how to use vba code to change word format of "word copy from website"
    to word format of "write by hand"

    --------------------------------------------------------------------
    Remark"
    when we use the mouse put in A2 ,put the mouse at 550 the back,press delete,it become 550(write by hand)
    same formatting.
    ---------------------------------------------------------------------
    attached file it is only small part of the data which ask for help. actually it contain many data in sheet1

    Thanks
    Tom
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: word format

    No vba needed.

    In Excel, press Ctrl h

    Click in the top box (the one that says 'Find What:')

    Hold down the 'Alt' key, and while you're holding it, type 0160 using the number pad on the right side of your keyboard.

    ** You must use the number keys on the right, if you use the ones at the top of the keyboard it will not work!! **

    Make sure that the bottom box ('Replace With:') is empty, and click the 'Replace All' button.

  3. #3
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    Re: word format

    thanks jason..

    Will we follow bellow steps?
    1.when the box show "find and replace",
    2.press (=hold down) 'alt' key , type 0160 on right side of keyboard( but it dont show any word which
    we type in "find what" ....). that mean we done nothing ...

    pls help
    Thanks
    Tom

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: word format

    Quote Originally Posted by hktom View Post
    2.press (=hold down) 'alt' key , type 0160 on right side of keyboard( but it dont show any word which
    we type in "find what"
    ....)
    This is correct! You cannot see that which is not visible!

    If you had made the effort to click the button as instructed, you would see that it does what you need.

    Try again, press 'Ctrl h', then click 'Replace All', ** Do Not re-type the 'Alt 0160' sequence! ** The character should still be there from your earlier failed attempt.

    If it doesn't work, then try repeating all steps as described in post #2.

  5. #5
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    Re: word format

    thanks jason i try but still fail ....

    dear all

    do we have vba code to delete the last space in cell ?

    thanks
    tom

  6. #6
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    Re: word format

    i find from other ,
    the code is similar to follows?

    Please Login or Register  to view this content.
    but it don't work. pls help and modify
    thanks
    tom
    Last edited by alansidman; 12-22-2015 at 05:07 PM.

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: word format

    If the procedure I suggested failed then that is down to the way it was used. It works fine for me on your test file. If you really want it in vba then you can get that from the macro recorder.

    Trim will not work because the extra character you have is not a space, although it might look like one.

    Did you have more than one cell selected when you pressed 'Ctrl h'? If so that is probably the cause of the failure.

    If a single cell is selected, then find and replace applies to the whole sheet, if more than one cell is selected, then it only applies to the selection.

  8. #8
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    Re: word format

    sorry jason , i think i need use vba code ..

    i find other information, because i am very fresh for vba
    Please Login or Register  to view this content.
    but it still dont work...pls help
    thanks
    tom
    Last edited by alansidman; 12-22-2015 at 05:08 PM. Reason: code tags added

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: word format

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  10. #10
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    Re: word format

    thanks jason ...actually my english is not so good and dont understand the rules ...anyway i believe
    can use your methods before. the problems is solved

  11. #11
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: word format

    Quote Originally Posted by hktom View Post
    actually my english is not so good and dont understand the rules
    Language is no excuse, have a look here, see if you understand one of these versions.

    http://www.excelforum.com/forums-rules/

    If you correctly tag the code in post #8 then I will provide a vba solution for you (it only needs one line).
    Last edited by jason.b75; 12-22-2015 at 12:16 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Word to XML format - through excel vba
    By ravikd_r in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2014, 05:25 PM
  2. Format Placeholders in Word
    By kiwicantfly in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2014, 06:17 AM
  3. [SOLVED] conditional format for given word
    By deltech in forum Excel General
    Replies: 9
    Last Post: 09-22-2012, 11:55 AM
  4. Replies: 2
    Last Post: 08-16-2011, 12:08 PM
  5. Replies: 1
    Last Post: 09-10-2007, 11:52 AM
  6. Format only cells containing certain word
    By Jay in forum Excel General
    Replies: 4
    Last Post: 07-29-2006, 10:15 AM
  7. [SOLVED] identify a word in a string then change the format of that word
    By EazyExcel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2005, 03:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1