Thread: [Solved] Macro to select tables
View Single Post
 
Old 04-15-2012, 06:29 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Hi ubns,

This is the first time youve mentioned headings in this thread.

For some code to process content between headings, see: https://www.msofficeforums.com/vba/1...ific-text.html

You need to note that vba can't select multiple discontiguous ranges. So, if the there is anything between the tables, they have to be either: copied & pasted individually; or copied as a group along with the intervening content, which can then be deleted after pasting.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote