Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 08-31-2017, 01:58 AM
macropod's Avatar
macropod macropod is offline word macro To insert text at the beginning and at end of paragraph Windows 7 64bit word macro To insert text at the beginning and at end of paragraph 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

I did ask you about tables a week ago. It would have been helpful had you mentioned this requirement then. Indeed, if you look at the code, the processing basics for tables are already there!



PS: I've merged your latest question with the previous thread, since they're obviously related.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #17  
Old 08-31-2017, 03:50 AM
ArieH ArieH is offline word macro To insert text at the beginning and at end of paragraph Windows 10 word macro To insert text at the beginning and at end of paragraph Office 2007
Novice
word macro To insert text at the beginning and at end of paragraph
 
Join Date: Aug 2017
Posts: 10
ArieH is on a distinguished road
Default

I Asked about putting </ and /> at the beginning and the end of a paragraph, during your respons, part of the paragraph was a table, in which you gave me example that solved my request.
Now the issue is not searching for a paragraph but searching table/s within the document and to put some mark before and at the end of a table. If I can use your code, it will be great, if you can mark which part of the code to use? (sorry, I'm noe VBA developers, so it make me more difficult to express myself)
Reply With Quote
  #18  
Old 08-31-2017, 04:32 AM
macropod's Avatar
macropod macropod is offline word macro To insert text at the beginning and at end of paragraph Windows 7 64bit word macro To insert text at the beginning and at end of paragraph 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 RngFmt code in post #13 shows how to handle tables when your Style conditions are met. You should study how it works and adapt it to suit tables in general (if that's what you're trying to do) - it's not particularly difficult.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #19  
Old 08-31-2017, 05:53 AM
ArieH ArieH is offline word macro To insert text at the beginning and at end of paragraph Windows 10 word macro To insert text at the beginning and at end of paragraph Office 2007
Novice
word macro To insert text at the beginning and at end of paragraph
 
Join Date: Aug 2017
Posts: 10
ArieH is on a distinguished road
Default

OK, I'll try. Do you have idea how to to put the mark "<T" before the beginning of the table?
Reply With Quote
  #20  
Old 08-31-2017, 02:59 PM
macropod's Avatar
macropod macropod is offline word macro To insert text at the beginning and at end of paragraph Windows 7 64bit word macro To insert text at the beginning and at end of paragraph 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 code I posted already shows how to insert content before and after a table...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #21  
Old 09-10-2017, 04:23 PM
macropod's Avatar
macropod macropod is offline word macro To insert text at the beginning and at end of paragraph Windows 7 64bit word macro To insert text at the beginning and at end of paragraph 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

Quote:
Originally Posted by ArieH View Post
I have Word Documents with many tables inside.
I need to mark with delimited key like <T before and T> at the end of the table (not inside the table's cells), so other tool that convert the document will know that this item is a table artifact.
Cross-posted at: http://www.vbaexpress.com/forum/show...end-of-a-table
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
macro, macro help, table control, word 2007



Similar Threads
Thread Thread Starter Forum Replies Last Post
word macro To insert text at the beginning and at end of paragraph Can't insert space at the beginning of a line in Word p89.schneider Word 6 03-24-2016 11:38 PM
word macro To insert text at the beginning and at end of paragraph Macro to Insert text into the beginning on specific paragraphs unless the paragraph is blank caboy Word VBA 2 04-01-2015 07:00 AM
word macro To insert text at the beginning and at end of paragraph VBA code for Microsoft Word macro — select text and insert footnote ndnd Word VBA 10 01-06-2015 01:47 PM
word macro To insert text at the beginning and at end of paragraph Macro to insert multiple pictures to word to a specific size and text wrap mescaL Word VBA 3 11-03-2014 10:51 PM
Looping macros to add text to beginning and end of a paragraph pachmarhi Word VBA 0 02-16-2009 06:57 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:45 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