+ Reply to Thread
Results 1 to 5 of 5

help to adjust my macro code

  1. #1
    Registered User
    Join Date
    01-11-2016
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    13

    Lightbulb help to adjust my macro code

    Hi all,

    i was wondering if are there any way to copy Latin text values like (font name,size,style) to complex script values as shown below


    00.png

    i already know that it should be in vba like

    .NameBi = .Name
    .SizeBi = .Size
    .BoldBi = .Bold
    .ItalicBi = .Italic


    but i want a macro can go through each word and copy this values as i explained


    Thanks in advance

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: help to adjust my macro code

    You can turn on the macro recorder to get the code.

    I selected the data in a document, turned on the macro recorder, set the parameters you wanted and below is the produced code.

    Please Login or Register  to view this content.
    Better yet, you can modify a style and apply that...

    Here is one place to start...
    HTH
    Regards, Jeff

  3. #3
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: help to adjust my macro code

    Cross-posted at: http://www.techsupportforum.com/foru...e-1109801.html

    Please read the Cross-Posting policy in rule #8: http://www.excelforum.com/forum-rule...rum-rules.html
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  4. #4
    Registered User
    Join Date
    01-11-2016
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    13

    Re: help to adjust my macro code

    Dear Jeff, kindly be informed that i already did record a macro as you did but it doesn't change values as i requested

    i have to select each paragraph one by one then run macro, so i need to that change to applied all over the file without selection each paragraph


    Administrative Note:
    Hi Muhammad, as long as you are reading the forum rules...

    As per Forum Rule #12, please don't quote whole post unless necessary -- it's just clutter.
    Last edited by jeffreybrown; 04-13-2016 at 09:54 PM. Reason: Removed whole quotes...Quoting whole posts is not necessary

  5. #5
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: help to adjust my macro code

    Quote Originally Posted by Muhammad Waheed View Post
    i have to select each paragraph one by one then run macro, so i need to that change to applied all over the file without selection each paragraph
    As Jeff has already said:

    Quote Originally Posted by jeffreybrown View Post
    you can modify a style and apply that...
    Modifying a Style applies the change to all paragraphs based on that Style, throughout the document, without the need to select anything.

+ 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. Can Someone Please Adjust This Code to Increase Speed?
    By smcmahon83 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2015, 03:09 PM
  2. [SOLVED] Adjust code to run OnClick only
    By clarkyblade in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-22-2015, 04:12 AM
  3. Adjust the code in the Web Query
    By win1980 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2013, 11:21 PM
  4. Auto Adjust VBA Code
    By skankingpigeon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-17-2012, 04:31 PM
  5. How to adjust this code to import a csv file rather than xml
    By scantron in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-23-2012, 09:10 AM
  6. Adjust code to allow multi choice please?
    By garyi in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-16-2012, 03:51 PM
  7. VBA Code to adjust for dynamic file name
    By patelh9 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2010, 12:23 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