Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word VBA

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 11-09-2018, 01:34 PM
LuisXVI LuisXVI is offline Windows 7 32bit Office 2010
Novice
 
Join Date: Nov 2018
Posts: 2
LuisXVI is on a distinguished road
Default I need a macro to format images and remove tabs. help

Greetings.



I have a document that has more than 300 pages and in many paragraphs has different margins and tabulations both left and right.

It also has many figures with a format, like putting all those figures in the transparent format.

How to do this through a macro.

Question 1 How to put all the paragraphs with the same margins.

question 2. How to remove all tabulations, whether they are left or right, no matter what position they are in.

Sorry for my English, I speak Spanish.

Thanks for your attention and your help

Luis
Reply With Quote
  #2  
Old 11-11-2018, 02:35 PM
eduzs eduzs is offline Windows 10 Office 2010 32bit
Competent Performer
 
Join Date: May 2017
Posts: 102
eduzs is on a distinguished road
Default

My answer does not apply to the question, sorry...
__________________
Backup your original file before doing any modification.

Last edited by eduzs; 11-11-2018 at 04:41 PM.
Reply With Quote
  #3  
Old 11-11-2018, 04:13 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 18,616
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

Re Question 1: Using Ctrl-A, then applying the same paragraph Style to the whole document would achieve that, but it may also change headings, etc. If that's an issue, you'll need to select the individual ranges and apply the appropriate Styles. Since we don't know what Styles your document uses or how much they might have been abused with direct formatting, it's impossible to write a macro that could reliably achieve the results you want. Hence, contrary to what eduzs makes out, this is by no means 'such a simple thing' you could use the macro recorder for.

Re Question 2: Once you've dealt with Question 1, you may find the problem no longer exists. The code suggested by eduzs won't remove any tabs; only tabstops. Neither will it address indents. If, after you've dealt with Question 1, the problem remains, post back with the details of what you still need to fix.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #4  
Old 11-12-2018, 11:48 AM
LuisXVI LuisXVI is offline Windows 7 32bit Office 2010
Novice
 
Join Date: Nov 2018
Posts: 2
LuisXVI is on a distinguished road
Default thanks macropod

Thank you for your attention

I'm going to use the suggestion to question 1.

I will tell you how it was

very thankful.

One more question.

To excel there is a huge amount of help but for the use of bva in word I have not found almost anything.

A book about macros in word or the use of vba in word that can suggest me, because I really have not found much on the subject.

Again, thanks a thousand
Reply With Quote
  #5  
Old 11-12-2018, 03:12 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 18,616
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

There are lots of resources available for Word. A couple of books I contributed to are mentioned in http://www.msofficeforums.com/word-v...html#post94346
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove tabs from certain cells in a table garryjunada Word Tables 2 07-16-2018 12:51 AM
How to remove all tabs from Excel spreadsheet? bulrush Excel 9 02-26-2018 11:56 AM
remove tabs from cells ewso Excel 5 12-27-2017 07:39 PM
Word 2010 Cross reference - remove tabs kennethc Word 6 01-14-2015 08:54 AM
How to format section tabs and page list tkavan OneNote 0 07-08-2014 09:11 AM


All times are GMT -7. The time now is 05:06 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft