Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-26-2021, 07:42 PM
Bikram Bikram is offline Fomatting Tables differently in Odd and even pages Windows 10 Fomatting Tables differently in Odd and even pages Office 2007
Advanced Beginner
Fomatting Tables differently in Odd and even pages
 
Join Date: Jul 2021
Location: Nepal
Posts: 90
Bikram is on a distinguished road
Post Fomatting Tables differently in Odd and even pages

Greetings to all the seniors, I am facing a problem and looking forward to a solution.

I am working in mirror margin pages where margins would be Top 1.3, Bottom 1.3, Left 1.8, and right 4.8 Where 3 cm is extra in each page for text boxes. Now, the table I formatted for odd pages does not match if extra contents is added on previous pages.
I want to know whether I can format the tables according to the odd and even pages differently.

Sub formattingtables()
Dim doc as documents
Dim tt as integer
Dim I as integer

Set doc = Application.Activedocument
tt = t.count

For i = 1 to tt

' If doc.tables(i) is in odd pages then

doc.Tables(i).Rows.LeftIndent = CentimetersToPoints(3)
doc.Tables(i).PreferredWidthType = wdPreferredWidthPoints
doc.Tables(i).PreferredWidth = CentimetersToPoints(12)


End If
' If doc.tables(i) is in even pages then
doc.Tables(i).Rows.Alignment = wdAlignRowRight
doc.Tables(i).Rows.Alignment = wdAlignRowLeft
doc.Tables(i).PreferredWidthType = wdPreferredWidthPoints
doc.Tables(i).PreferredWidth = CentimetersToPoints(12)
End If
End Sub

Next



End Sub

Any help would be greatly appreciated !!!
TThanks in advance !!!
Reply With Quote
  #2  
Old 10-10-2021, 07:32 AM
eduzs eduzs is offline Fomatting Tables differently in Odd and even pages Windows 10 Fomatting Tables differently in Odd and even pages Office 2019
Expert
 
Join Date: May 2017
Posts: 260
eduzs is on a distinguished road
Default

No adjusted page numbering in document? each table is within a single page?

Last edited by eduzs; 10-11-2021 at 07:01 AM.
Reply With Quote
Reply

Tags
formatting tables

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to have Headers/Footers for pages consist of tables Henry19 Word 1 02-03-2021 02:21 PM
Using tables to format pages hollies Word Tables 4 10-23-2020 03:17 AM
tables breaking accross pages DimBulb Word Tables 2 06-29-2017 09:43 AM
Fomatting Tables differently in Odd and even pages TOC is wrapping around pictures set in tables and spreads over several pages humanebeauty Word 2 07-24-2016 08:53 AM
Fomatting Tables differently in Odd and even pages Keeping Tables from Splitting Between Pages AlexPaoletti Word Tables 2 05-18-2010 01:17 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:05 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft