Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
Benz Benz is offline
external usenet poster
 
Posts: 7
Default Insert in First Empty Cell

Thank you! It works great!

Ben Z.

"Helmut Weber" wrote:

Hi Ben,

Sub Macro7()
Dim oTbl As Table
Dim oCll As Cell
Set oTbl = ActiveDocument.Tables(1)
With oTbl
For Each oCll In .Columns(1).Cells
If Len(oCll.Range) = 2 Then
oCll.Range.Text = "was empty"
Exit For
End If
Next
End With
End Sub

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
insert clip art gives a empty box clipart don't paste Microsoft Word Help 1 May 18th 06 08:35 PM
Empty Insert Object List - Word 2003 PantherMartin13 Microsoft Word Help 2 March 23rd 06 03:26 AM
empty box when i insert picture? Chalin Microsoft Word Help 1 September 22nd 05 09:18 PM
how to create or insert a cell in Word? Joing New Users 1 January 20th 05 04:44 AM
How do I insert a picture into a cell of a table? MALIrish Tables 1 November 2nd 04 04:08 AM


All times are GMT +1. The time now is 09:48 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"