Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 08-11-2016, 05:15 PM
Marco Marco is offline table and code accidentally working only on odd rows Windows Vista table and code accidentally working only on odd rows Office 2007
Novice
table and code accidentally working only on odd rows
 
Join Date: Apr 2015
Posts: 15
Marco is on a distinguished road
Default

Greg, thanks for the assistance.

Consider me more than a newbie Word VBA. I put together this code long ago after saeveral attempts of (intelligent ) copying & editing and from various web sources.
It is applied by AutoOpen to a table created by mailmerge from a Access file.

I just realised the following (puzzling) facts:

- when applied to the table they're meant to work with, my code and your code give exactly the same result
- when applied to a new, normal table, created for test, your code works perfectly (no problem with even rows), while my code does absolutely nothing.

So the point is the structure of the file where they should be applied, obviosuly there's some big point that I'm missing.
Attached, there is my actual file (CollLabSp21mm.doc) and a testfile.doc containing a sample table originating from mailmerge.
Attached Files
File Type: docx testfile.docx (13.6 KB, 23 views)
File Type: doc CollLabSp21mm.doc (41.5 KB, 13 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
table and code accidentally working only on odd rows I want to add multiple rows into my document but I can not figure out the code jlw15931 Mail Merge 1 02-24-2015 05:03 AM
table and code accidentally working only on odd rows Header Rows in Tables Not Working Andy Pilkington Word 2 10-10-2014 12:36 AM
table and code accidentally working only on odd rows Is it possible to copy non-contiguous rows of a Table and paste them as a separate Table in Word? Joey Cheung Word Tables 1 08-12-2014 05:15 PM
table and code accidentally working only on odd rows VBA Code to take data from a table in word document and place it in a summary table VBLearner Word VBA 1 03-09-2014 08:42 PM
table and code accidentally working only on odd rows Grouping table rows to prevent individual rows from breaking across pages dennist77 Word 1 10-29-2013 11:39 PM

Other Forums: Access Forums

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