Page 1 of 1 1
Topic Options
#130581 - 2004-12-04 11:39 PM Split cells in word
marc_willemsen Offline
Fresh Scripter

Registered: 2004-12-03
Posts: 10
How can I split a cell in word?
I'm creating a tabel and adding text to the cells but in one off the cells there are dynamically thing inserted and this should be splitted by cells.

Can you help me?
Thanx!!

Top
#130582 - 2004-12-06 10:06 AM Re: Split cells in word
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Explain a little further. Give an example of what is happening, and what you are trying to do.
Top
#130583 - 2004-12-07 05:51 AM Re: Split cells in word
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Or read the VBScript Reference in the Microsoft Word Help.
_________________________
There are two types of vessels, submarines and targets.

Top
#130584 - 2004-12-13 10:44 PM Re: Split cells in word
marc_willemsen Offline
Fresh Scripter

Registered: 2004-12-03
Posts: 10
I have a table that has 5 rows and 3 colums.
I want to dynamically add items to the first colum but sometimes there will be 2 items in one colum, and sometimes even more. I want to split cells in a loop for as much as I need.

Short: when I need 2 things in one cell, I want to split the cell in to two. If I should need 3 things in the cell, I want to split the cell in to three cells.

Could you help me?
Example:
Code:
 $oTable.Cell(9,1).Range.InsertAfter("Print queues") 


Cell 9,1 needs to be split into 3 cells.

Thanx for your help!!

Top
#130585 - 2004-12-13 10:55 PM Re: Split cells in word
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
why you need to do this kinda stuff with script?
you obviously have someone already doing word documents for you, why that person can't write it properly forcing you modify it?

sure, it's doable but there clearly is some screw up on the way and that is what should be addressed, imho.
_________________________
!

download KiXnet

Top
#130586 - 2004-12-14 03:41 PM Re: Split cells in word
marc_willemsen Offline
Fresh Scripter

Registered: 2004-12-03
Posts: 10
What a stupid reply!
To answer your question: No, I don't have anybody making this document for me, I do It myself.

The only thing that I am doing 'wrong' is that I am a beginner!!!!!!! But thats why I've posted my question on this forum!

Top
#130587 - 2004-12-14 05:18 PM Re: Split cells in word
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
did I say wrong?
I clearly stated that the way you are going at it is weird.
if you are working with tables, why you are using word?
I hardly can understand excel for that but word is way beyond my sense of reasoning.
_________________________
!

download KiXnet

Top
#130588 - 2004-12-14 11:28 PM Re: Split cells in word
Jose Offline
Seasoned Scripter
*****

Registered: 2001-04-04
Posts: 693
Loc: Buenos Aires - Argentina
hello marc...sup?.
I recorded a macro, inserted a table and splited. This came out.
Code:
 Selection.Cells.Split NumRows:=1, NumColumns:=2, MergeBeforeSplit:=False 



Hope it helps


Edited by jose3 (2004-12-14 11:35 PM)
_________________________
Life is fine.

Top
#130589 - 2004-12-15 08:43 AM Re: Split cells in word
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
jose, you seem to be a com guru
_________________________
!

download KiXnet

Top
#130590 - 2004-12-15 01:16 PM Re: Split cells in word
Jose Offline
Seasoned Scripter
*****

Registered: 2001-04-04
Posts: 693
Loc: Buenos Aires - Argentina
Yeah!
I have so much knoledge about .COM sites that I am impressed of myself.


Edited by jose3 (2004-12-18 12:18 AM)
_________________________
Life is fine.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 557 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.038 seconds in which 0.015 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org