Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 02-27-2024, 08:30 PM
Xavier Xavier is offline How to get rid of lots of unwanted indentations Windows XP How to get rid of lots of unwanted indentations Office 2016
Advanced Beginner
How to get rid of lots of unwanted indentations
 
Join Date: Jul 2023
Posts: 52
Xavier is on a distinguished road
Default

Unfortunately that Macro doesn't seem to work either.

I'm not entirely sure how to share a snippet of the document that includes the images I want removed.



Can you advise on how this may be done?
Reply With Quote
  #17  
Old 02-28-2024, 12:59 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline How to get rid of lots of unwanted indentations Windows 11 How to get rid of lots of unwanted indentations Office 2021
Moderator
 
Join Date: Aug 2011
Posts: 3,907
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

In a reply window in the forum, click the Advanced button (below the text field), if you can't see any options for file attachments. After you have activated the "Advanced" view, you should see options for attaching files. You will have to make a copy of your original document, of course, and remove most of the content from the copy. Just leave the mysterious objects and some "dummy" text. Attach the *.docx file.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #18  
Old 02-28-2024, 08:36 AM
Charles Kenyon Charles Kenyon is offline How to get rid of lots of unwanted indentations Windows 11 How to get rid of lots of unwanted indentations Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by Stefan Blom View Post
In a reply window in the forum, click the Advanced button (below the text field), if you can't see any options for file attachments. After you have activated the "Advanced" view, you should see options for attaching files. You will have to make a copy of your original document, of course, and remove most of the content from the copy. Just leave the mysterious objects and some "dummy" text. Attach the *.docx file.
For more, see Attach a Sample File Demonstrating the Problem - Here's How
Reply With Quote
  #19  
Old 02-28-2024, 09:08 PM
Xavier Xavier is offline How to get rid of lots of unwanted indentations Windows XP How to get rid of lots of unwanted indentations Office 2016
Advanced Beginner
How to get rid of lots of unwanted indentations
 
Join Date: Jul 2023
Posts: 52
Xavier is on a distinguished road
Default

I think that snippet of my Word Doc is attached. I have been working with RFT files, but that wasn't an option for upload.

It seems the same situation exists in .docx documents, so that is what I have attached.

The thin line at the top of the first page [page 2A in the document] is a graphic, as is the line on the second page, which looks to be part of the same graphic as the mark above the words "sheriff's officers".
Attached Files
File Type: docx Snippet of Chamberlain trial.docx (22.8 KB, 3 views)
Reply With Quote
  #20  
Old 02-29-2024, 12:07 PM
Charles Kenyon Charles Kenyon is offline How to get rid of lots of unwanted indentations Windows 11 How to get rid of lots of unwanted indentations Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

The line in your sample is a graphic (a line). In fact, it is two lines, one atop the other!


Clicking on it gives me shape controls.




If I go to the Selection Pane I see both lines and can select one or the other.


Reply With Quote
  #21  
Old 02-29-2024, 06:14 PM
Xavier Xavier is offline How to get rid of lots of unwanted indentations Windows XP How to get rid of lots of unwanted indentations Office 2016
Advanced Beginner
How to get rid of lots of unwanted indentations
 
Join Date: Jul 2023
Posts: 52
Xavier is on a distinguished road
Default

Thanks for the reply. I'm aware that the lines are a graphic. What I'm trying to figure out is how I remove the graphics (including the lines) from the entire 3,000 page document.
Reply With Quote
  #22  
Old 03-01-2024, 07:07 AM
Italophile Italophile is online now How to get rid of lots of unwanted indentations Windows 11 How to get rid of lots of unwanted indentations Office 2021
Expert
 
Join Date: Mar 2022
Posts: 338
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

It is really very simple. You just need to make a simple modification to the code that you already have.

Code:
Sub DeleteAllShapes()
    Dim oShape As Shape
    Dim i As Integer
    For i = ActiveDocument.Shapes.Count To 1 Step -1
        ActiveDocument.Shapes(i).Delete
    Next i
    For i = ActiveDocument.InlineShapes.Count To 1 Step -1
        ActiveDocument.InlineShapes(i).Delete
    Next i
End Sub
The golden rule when getting code from the internet, even a forum like this one, is never use what you don't understand. So, please take some time to learn what the code you have been given is doing. Not only will this help you avoid potential disasters, it will also help you to modify code to suit your purpose.
Reply With Quote
  #23  
Old 03-01-2024, 07:25 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline How to get rid of lots of unwanted indentations Windows 11 How to get rid of lots of unwanted indentations Office 2021
Moderator
 
Join Date: Aug 2011
Posts: 3,907
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Good catch. It appears that most of us overlooked the reference to pictures which the original macro is testing for. In other words, the original code will delete a subset of shape objects.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional

Last edited by Stefan Blom; 04-03-2024 at 04:57 AM.
Reply With Quote
  #24  
Old 04-02-2024, 04:55 PM
Xavier Xavier is offline How to get rid of lots of unwanted indentations Windows XP How to get rid of lots of unwanted indentations Office 2016
Advanced Beginner
How to get rid of lots of unwanted indentations
 
Join Date: Jul 2023
Posts: 52
Xavier is on a distinguished road
Default

Thanks for everyone's help and apologies it has taken me a while to reply.

I am not able to upload a small portion of the document to the forum as I can tell. This is because it is a .RTF file. As far as I can see that file format isn't supported for uploads.

I have uploaded a piece of the document as a .docx document. Maybe that will help get to the bottom of this issue once and for all.
Attached Files
File Type: docx Doc showing images.docx (16.6 KB, 1 views)
Reply With Quote
  #25  
Old 04-02-2024, 07:07 PM
Guessed's Avatar
Guessed Guessed is offline How to get rid of lots of unwanted indentations Windows 10 How to get rid of lots of unwanted indentations Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

The code posted by Italophile in https://www.msofficeforums.com/180459-post22.html removes the graphic from your sample doc.

Perhaps you need to convert the RTF to docx before running the macro.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #26  
Old 04-02-2024, 08:22 PM
Xavier Xavier is offline How to get rid of lots of unwanted indentations Windows XP How to get rid of lots of unwanted indentations Office 2016
Advanced Beginner
How to get rid of lots of unwanted indentations
 
Join Date: Jul 2023
Posts: 52
Xavier is on a distinguished road
Default

Thanks once more. Yes, the code did end up working!!!
I'm so happy.
Reply With Quote
  #27  
Old 04-08-2024, 04:11 PM
Xavier Xavier is offline How to get rid of lots of unwanted indentations Windows XP How to get rid of lots of unwanted indentations Office 2016
Advanced Beginner
How to get rid of lots of unwanted indentations
 
Join Date: Jul 2023
Posts: 52
Xavier is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
Based on what you are showing you would also want to remove some of the extra paragraph marks. For instance, I would use find replace with wildcards on to
find: "^13([a-z])"
replace " \1" Note there is a space in front of the \1
I realise this thread has gone off track a bit, but thanks to all who have helped out.

My original question was about getting rid of errant tab marks. I am still having that problem.

I tried Guessed's recommendation to use "^13([a-z]" with wildcards on and replace it with " \1" but it didn't find any.

I tried using "^13([a-z]" and even replacing it with nothing, but it just couldn't find any references to that at all.

I saw online that I could try in the Home tab opening up the paragraph dialogue box and hitting the tab button and clearing all. That didn't seem to help at all, either.
Attached Images
File Type: jpg Screenshot tab mark.jpg (18.2 KB, 5 views)
Reply With Quote
  #28  
Old 04-08-2024, 04:58 PM
Guessed's Avatar
Guessed Guessed is offline How to get rid of lots of unwanted indentations Windows 10 How to get rid of lots of unwanted indentations Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

A tab is ^t
A paragraph mark is ^p

A tab at the start of a new paragraph is ^p^t
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Indentations in Mail and Calendar for Windows 10 Mr M Windows 0 06-20-2018 07:01 AM
How to get rid of lots of unwanted indentations Removing indentations at beginning of paragraphs and replacing with line spaces captainamerica Word 2 10-27-2017 05:32 PM
How to get rid of lots of unwanted indentations Interpreting special characters as bullets and indentations burry01 Word 1 01-18-2016 12:24 AM
Bullet indentations unexpected change richard hans Word 2 01-15-2014 05:14 PM
Word indentations mepossem Word 2 10-07-2013 10:02 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:12 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft