Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-14-2022, 12:40 AM
TheBigBoss TheBigBoss is offline Ensure macro only run for specific table or table in page 1 Windows 7 32bit Ensure macro only run for specific table or table in page 1 Office 2010 32bit
Advanced Beginner
Ensure macro only run for specific table or table in page 1
 
Join Date: Dec 2016
Posts: 56
TheBigBoss is on a distinguished road
Default Ensure macro only run for specific table or table in page 1

Hi there!

I have a basic macro that changes table properties (lines, width, etc.) of the first FOUR tables found in the document which form a masthead (see below)

It works great... but what about document not having the masthead, the macro will still run and mess up the four first tables found in the document.

I am using to Selection.Information(wdActiveEndPageNumber) to check that that tables are in page 1

However, I wonder if there is any better option.
I saw "ID" under "Table", can table be given an unique ID or name? Or any identifier?



Thanks
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for a macro for word count in one specific column of table, only rows with white background mobj Word VBA 2 10-17-2019 03:09 AM
Ensure macro only run for specific table or table in page 1 Macro to delete table rows based on the absence of a single specific keyword JellehFishh Word VBA 2 06-27-2019 08:23 AM
Linking Specific text fields in PP to specific cells in an Excel table GWRW1964 PowerPoint 0 02-26-2018 07:37 AM
Ensure macro only run for specific table or table in page 1 VBA Table – Search All Tables - Find & Replace Text in Table Cell With Specific Background Color jc491 Word VBA 8 09-30-2015 06:10 AM
Ensure macro only run for specific table or table in page 1 Save table sytle, NOT a specific table Lebber Word 9 02-01-2013 12:31 AM

Other Forums: Access Forums

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