Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-19-2011, 11:46 PM
macropod's Avatar
macropod macropod is offline Moving Tables Windows 7 32bit Moving Tables Office 2007
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

Hi b0x4it,



Yes, it can be done with vba. Try:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim i As Long, Rng As Range
With ActiveDocument
  Set Rng = .Paragraphs.Last.Range
    With Rng
      If Len(.Text) > 1 Then
        .InsertAfter vbCr
        .Collapse wdCollapseEnd
      End If
    End With
  For i = .Tables.Count To 1 Step -1
    With .Tables(i).Range
      If .InlineShapes.Count > 0 Then
        .Cut
        With Rng
          .Paste
          .Paragraphs.First.Previous.Range.Characters.Last.InsertBefore vbCr
          .Start = .Paragraphs.First.Previous.Range.Start
          .Collapse wdCollapseStart
        End With
      End If
    End With
  Next
End With
Application.ScreenUpdating = True
End Sub
Please keep in mind that this isn't a free coding forum, though. So far, I've written quite a few macros for you - and you've asked for other macros as well ...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Tables Moving comments sollc Excel 3 04-13-2011 04:43 AM
moving from one computer to the next Billmce Office 0 04-26-2010 03:41 PM
Moving Tables Moving formula range multiple cells when moving sum over one cell FraserKitchell Excel 4 02-26-2010 10:38 AM
Moving from Vista to Windows 7 zyzzyva57 Office 0 12-18-2009 04:41 PM
Moving Items windsurfer Outlook 0 12-06-2005 06:36 AM

Other Forums: Access Forums

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