Dec 22nd, 2005, 09:14 AM
#1
Thread Starter
Frenzied Member
end-of-row mark Microsoft Word
How can i search for the end-of-row mark in word find?
What the special format.
Dec 22nd, 2005, 09:35 AM
#2
Re: end-of-row mark Microsoft Word
Isn't it a (CARRIAGE RETURN + LINE FEED) - basically vbNewLine for each new line and (LINE FEED) for each line that's wrapped ?
Dec 22nd, 2005, 09:36 AM
#3
Thread Starter
Frenzied Member
Re: end-of-row mark Microsoft Word
I am talking in the microsoft find. like /p means paragraph mark and /t = tab mark. What finds the end of row mark?
Dec 22nd, 2005, 09:38 AM
#4
Re: end-of-row mark Microsoft Word
Originally Posted by
shragel
I am talking in the microsoft find . ...
What's that ??? What are you trying to do anyway?
Dec 22nd, 2005, 10:07 AM
#5
Re: end-of-row mark Microsoft Word
Originally Posted by
RhinoBull
What's that ???
What are you trying to do anyway?
I think he is talking about doing this from within Word itself using VBA which is why we were a little confused.
Moved to Office Development.
Dec 22nd, 2005, 06:33 PM
#6
Thread Starter
Frenzied Member
Re: end-of-row mark Microsoft Word
So does anyone know the answer?
Dec 22nd, 2005, 06:42 PM
#7
Re: end-of-row mark Microsoft Word
If your taking about paragraphs line wrapping and being able to determine the word that is at the end of the line before it wraps then I do not believe there is a character for that. Its all about what fits on the line as Word will start the rest of the sentence/paragraph on the next line. You may be able to determine the number of lines or get the verbiage on a line.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Dec 22nd, 2005, 06:48 PM
#8
Thread Starter
Frenzied Member
Re: end-of-row mark Microsoft Word
I am talking in a table where is such a mark for the end of the cell, or end of the mark. I am looking to search for that.
Like shown in this link
http://www.oreilly.com/catalog/word2...pter/ch10.html
Dec 22nd, 2005, 07:00 PM
#9
Re: end-of-row mark Microsoft Word
Oh, then you want the .Clees in a .Row. If you set an object variable to the table and then another one to the particular row in question then you will get the needed object property.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Dec 22nd, 2005, 07:06 PM
#10
Thread Starter
Frenzied Member
Re: end-of-row mark Microsoft Word
My problem is that when i am creating a mail merge for labels, all the labels get a extra paragrah before the end, so what i want is to delete the last paragraph from all labels so that it showld be centered.
Dec 22nd, 2005, 11:33 PM
#11
Re: end-of-row mark Microsoft Word
So then in the paragraph in each cell you will want to remove the "^p" from it. ^p is Words paragraph or new line character.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Dec 22nd, 2005, 11:53 PM
#12
Thread Starter
Frenzied Member
Re: end-of-row mark Microsoft Word
but i only want to remove the last one of each cell
For example
Name {Enter}
Address {Enter}
City, State Zip {Enter}
{Enter}
{End of cell mark}
And i need to remove only the last enter from each cell.
Dec 22nd, 2005, 11:55 PM
#13
Re: end-of-row mark Microsoft Word
You can use Instr or InstrRev to find the last occurance of the ^p character. Or youcan use the Replace function and specify the last character of the string as the starting point.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Dec 22nd, 2005, 11:59 PM
#14
Re: end-of-row mark Microsoft Word
Originally Posted by
RobDog888
Oh, then you want the .Clees in a .Row. If you set an object variable to the table and then another one to the particular row in question then you will get the needed object property.
All I can say, is "Merry Christmas to all, and to all, a good night"
Dec 23rd, 2005, 12:12 AM
#15
Thread Starter
Frenzied Member
Re: end-of-row mark Microsoft Word
but i need to remove the lasst of each cell.
See the attached document.
Attached Files
Dec 23rd, 2005, 12:37 AM
#16
Re: end-of-row mark Microsoft Word
Dont know what dglienna is talking about but anyways...
You can loop through the cells in a row and replace the ending paragraph character with a empty string.
VB Code:
Dim cel As Cell
For Each cel In ActiveDocument.Tables(1).Rows
cel.Range.Text = Replace(cel.Range.Text, "^p", vbNullString, Len(cel.Range.Text) - 2, , vbTextCompare)
Next
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Dec 23rd, 2005, 12:41 AM
#17
Re: end-of-row mark Microsoft Word
Oh. Now I understand. .Clees = .Cells
My mistake.
Dec 23rd, 2005, 12:43 AM
#18
Re: end-of-row mark Microsoft Word
I didnt even see that. I am a bit dyslexic. Doubled up on the e's instead of the l's.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width