Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-23-2015, 12:15 AM
srinidhi.mv88 srinidhi.mv88 is offline Join the table to header Windows 7 64bit Join the table to header Office 2010 64bit
Novice
Join the table to header
 
Join Date: Apr 2015
Posts: 11
srinidhi.mv88 is on a distinguished road
Default Join the table to header

Hello,



I am working with word to solve the issue of join table macro and VBA. How can i solve this issues where tables needed to join in a page are dynamic. a picture will explain what i need.
The number tables generated are dynamic and it should be attached to the header as shown in the picture.

Delete1: spaces between tables
Join1: table to header

Please help me.

Regards,
Srinidhi
Attached Images
File Type: jpg a.JPG (58.2 KB, 22 views)

Last edited by srinidhi.mv88; 04-23-2015 at 05:44 AM. Reason: proper questioning method
Reply With Quote
  #2  
Old 04-23-2015, 09:52 PM
gmayor's Avatar
gmayor gmayor is offline Join the table to header Windows 7 64bit Join the table to header Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

How was this series of tables created? If you want to remove the spaces between the tables, run a macro with the following code:

Code:
Dim oPara As Paragraph
    For Each oPara In ActiveDocument.Range.Paragraphs
        If Not oPara.Range.Information(wdWithInTable) Then
            If Len(oPara.Range) = 1 Then
                oPara.Range.Style = "Normal"
                oPara.Range.Delete
            End If
        End If
    Next oPara
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 04-26-2015, 11:55 PM
srinidhi.mv88 srinidhi.mv88 is offline Join the table to header Windows 7 64bit Join the table to header Office 2010 64bit
Novice
Join the table to header
 
Join Date: Apr 2015
Posts: 11
srinidhi.mv88 is on a distinguished road
Default

These tables are generated by our database, which has 2 different object types and each object type has its own template. for example

Header is in the test case template, the following tables are test steps. which are managed in our database as meta data.

I will try this code and if in case i need help, i will write again. Please help me with the VBA code as i am new to it.

With regards,
Chini
Reply With Quote
Reply

Tags
macros, vba code, word 2010;



Similar Threads
Thread Thread Starter Forum Replies Last Post
Join the table to header Repeat header of table within another table Dart82 Word Tables 3 04-11-2016 04:15 AM
Join the table to header Repeat header of a table, what about captions ? Yankel Word Tables 3 08-01-2014 05:18 PM
Join cells together separated by ; when some are blank leemoreau Excel 3 11-03-2013 11:22 AM
Format as table-> with 2 row header? 56_kruiser Excel 3 11-13-2012 11:32 PM
Help Autoformating a Table w 2 header rows Julie713 Word Tables 0 03-01-2010 08:15 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:44 PM.


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