Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-19-2014, 02:26 AM
TSTG TSTG is offline Word VBA Tables Windows 7 64bit Word VBA Tables Office 2007
Novice
Word VBA Tables
 
Join Date: May 2014
Posts: 4
TSTG is on a distinguished road
Default Word VBA Tables

Hello,
Im a new student and i am learning vba now, so sorry for my nooby code.

I am writig a code that converts a word file into an xml file.


at one point i have to analyse a table and add the cells to the xml file. at the beginning ist was enough to use the following code to go to next cell and work with selection:
"Selection.MoveRight Unit:=wdCell"
with
"Selection.MoveRight Unit:=wdCell
If selection = "" then (stop analysing this table)"
i checked if this was the last cell.

now my problem is, if the table has an empty cell in the middle, for example, the code does not analyse the rest of the table.

i think it would be helpfull if i can get the information how many cells and rows the table has.

I hope you have an other idea and a minute time for me,
Thanks
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word VBA Tables Help! Baffled by tables in Word DChord568 Word Tables 5 11-16-2012 01:36 PM
Word VBA Tables Tables in Word angalis428 Word 1 01-06-2012 01:12 PM
Word VBA Tables Excel Tables to MS Word ripcurlksm Word Tables 2 09-09-2011 04:59 AM
Copying tables to MS Word 123 Word Tables 1 03-02-2011 11:25 AM
Word tables nbudd Word Tables 1 05-09-2010 06:31 AM

Other Forums: Access Forums

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