Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-08-2016, 03:04 PM
macropod's Avatar
macropod macropod is offline Deleting Characters in a specific location in Word 2010 Windows 7 64bit Deleting Characters in a specific location in Word 2010 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The macro I posted doesn't process anything other than the start of the document because your requirements are unclear. For example, one can only guess what you mean by:


Quote:
the carriage control in the 1st position which is a '1' for new page or a '0' to skip 2 lines
None of this is normal Word terminology. If you want content deleted throughout the file, you're going to have to be clearer on precisely what that content is.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 12-09-2016, 09:26 AM
ppayaw ppayaw is offline Deleting Characters in a specific location in Word 2010 Windows 10 Deleting Characters in a specific location in Word 2010 Office 2010 64bit
Novice
Deleting Characters in a specific location in Word 2010
 
Join Date: Dec 2016
Posts: 5
ppayaw is on a distinguished road
Default

Hi Paul,
I apologize for not being very clear. Its probably my mind thinking and talking in the mainframe language. I will try to be clearer this time.

When a listing is created in the mainframe, position 1 in every line of the report is reserve for carriage returns. This is how the mainframe communicate to the printers for line spacing. Each line in the document actually starts at position 2. So when you FTP the report out of the mainframe into a text file you will see all the carriage returns in position 1. A “1” is a page break a “0” is skip 2 lines a “-“ is skip 3 lines a blank is print next line. All I wanted to do is to strip these carriage return after I'm done using it in my macro and replace them with a blank so I don’t mess up the alignment of each line and the document looks right.

I attached a sample of the document xyz.docx so it will be a little bit clearer. The document consist of hundreds of pages and I only attched 1 page out of this document. I already ran my macro for this document that perform the page break and the skipping of lines. If you look at this sample page, in position 1 of each line you will still see the l the carriage return codes(except for blank, it just mean next line) which I used to do the page breaks and line skipping.

Thank you again for looking at my post and being so patient.
Phil
Attached Files
File Type: docx xyz.docx (13.8 KB, 15 views)

Last edited by ppayaw; 12-09-2016 at 01:46 PM.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying specific columns of a table to WORD and deleting rows ffinley Word VBA 5 12-07-2015 04:01 PM
Deleting Range between Characters ! - % Jonny Word 1 01-28-2015 04:35 PM
Deleting Characters in a specific location in Word 2010 Deleting A blank Line that has a specific heading style , word 2010 & 2013 SteveWcg Word 5 01-08-2014 10:37 PM
Deleting Characters in a specific location in Word 2010 Word 2010 save to new location youngdave55 Word 5 05-10-2012 12:12 AM
Create Hyperlinks from Word to specific location in PDF sukanyae Word 0 02-25-2010 04:08 PM

Other Forums: Access Forums

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


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