Re: Find First Clear Cell in a Word Table
From: Doug Robbins - Word MVP - DELETE UPPERCASE CHARACTERS FROM EMAIL ADDRESS (dkr_at_mOSTvALUABLEpROFESSIONALs.org)
Date: 03/03/04
- Next message: Word Heretic: "Re: Merged rows and columns -- with XML and Word 2003"
- Previous message: Doug Robbins - Word MVP - DELETE UPPERCASE CHARACTERS FROM EMAIL ADDRESS: "Re: I need help with a While loop"
- In reply to: norm: "Re: Find First Clear Cell in a Word Table"
- Next in thread: norm: "Re: Find First Clear Cell in a Word Table"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 3 Mar 2004 17:29:30 +1000
Use
Dim myrange As Range, today As String
today = Format(Date, "dddd, MMMM dd, yyyy")
Selection.HomeKey wdStory
Selection.Find.ClearFormatting
With Selection.Find
Do While .Execute(FindText:=today, MatchWildcards:=False,
Wrap:=wdFindStop, Forward:=True) = True
Set myrange = Selection.Range
myrange.End = myrange.End + 1
myrange.Collapse wdCollapseEnd
myrange.Select
Loop
End With
-- Please post any further questions or followup to the newsgroups for the benefit of others who may be interested. Unsolicited questions forwarded directly to me will only be answered on a paid consulting basis. Hope this helps Doug Robbins - Word MVP "norm" <norm.12j32l@nospam.WordForums.com> wrote in message news:norm.12j32l@nospam.WordForums.com... > > Hi Doug, > > The format of the dates in my first column is: > Wednesday, March 03, 2004 > and so on. > Finding the current date and moving across one cell would work. How > does a macro to do that look. I will need some help with it. > > Sincerely > norm > > > ------------------------------------------------ > ~~ Message posted from http://www.WordForums.com/
- Next message: Word Heretic: "Re: Merged rows and columns -- with XML and Word 2003"
- Previous message: Doug Robbins - Word MVP - DELETE UPPERCASE CHARACTERS FROM EMAIL ADDRESS: "Re: I need help with a While loop"
- In reply to: norm: "Re: Find First Clear Cell in a Word Table"
- Next in thread: norm: "Re: Find First Clear Cell in a Word Table"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|