#16
|
|||
|
|||
No this doesn't make what i want to do. I' m searching for a macro because i dont know how to do this. That takes the text beside style of heading 1 and style of heading 2, and justifying without loosing its space between heading 1 and 2, only inside text justifying. I try this makro but, again changes the format of my document to the style of heading 1 or heading 2, depend on selection of text. Ok thanks, makropod. |
#17
|
||||
|
||||
Hi saints,
Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#18
|
|||
|
|||
Hi macropod
In the attached initial document i select the text between heading 1 and heading 2 then style, then choose text document with same format then run the macro and the solution be not expected. But even i choose, only the text between heading 1 and 2, the same again.
|
#19
|
|||
|
|||
Thanks but still a problem
Thanks so much for the help. I have followed the copy and paste procedure, pasting the whole macro from the window above, and tried the macro. I get "Compile Error: Expected End Stub" and when I click help, I get:
"An End procedure statement must match the procedure in which it occurs. This error has the following cause and solution:
|
#20
|
||||
|
||||
Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#21
|
|||
|
|||
Yes i think thats working nice. But how i can make it to select all text with same format and clean up text. In that way, that show to the second document i attached. In that way i must select manual all document text and apply the macro and next go to the second text, selected and apply the macro.
If i choose select style, with same format and apply the macro the macro dont work. I need more automation, any advice? |
#22
|
|||
|
|||
Quote:
|
#23
|
||||
|
||||
Quote:
Quote:
.Style = "Normal" (or another style name of your choice) before: .Format = False which you change to: .Format = True That should make to code reformat only the text in the nominated Style. PS: I've got very limited internet access ATM, and won't be able to respond to further queries for around 10 days.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#24
|
|||
|
|||
Quote:
|
#25
|
|||
|
|||
Is there a way to fix this code to work, or with the use of wildcards that aply only in specific style of the document?
|
#26
|
||||
|
||||
What Style name did you use? Does that Style exist in your document? For me, the using the code as described I get no errors.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#27
|
|||
|
|||
Why dont work on me
I use this document, opened selected document, choose a text inside not heading, after that right click and choose styles, choose text with similar style, and after macros, and run the inside macro of the document which said that style is Normal, which give me run time error 5834.
|
#28
|
|||
|
|||
Quote:
|
#29
|
|||
|
|||
Trying almost a month but nothing happens
Im trying to find a solution... but not working for me....Any help...?
|
#30
|
|||
|
|||
Style normal
i have put this macro in the initial document. And run it but nothing happens. What is wrong the macro dont justifing selected text of whole document automatic if this document has headings. Only if the document has the same format only. I put style normal but nothing happens. Yours working?
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Automatic Formatting for whole row | Bacchanal Promotions | Excel | 2 | 03-19-2011 05:12 AM |
Office 2007 Mail Merge Issue - automatic formatting and revisions balloons | sharpie21 | Office | 1 | 10-10-2010 03:56 AM |
Automatic insertion of blank pages or alternate text | Diopippo | Word | 0 | 07-06-2010 12:13 AM |
problem with automatic formatting on quotation marks | Bobosmite | Word | 3 | 05-27-2010 07:06 PM |
Templates: automatic text generation from Rich Text content control | Chickenmunga | Word | 0 | 10-01-2008 11:16 AM |