G
gaubahn via OfficeKB.com
Hi guys,
these may be a really simple problem but i can't find the solution by just
looking at VBA help file so i was wondering if anyone can help me with this:
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Count:=1, Name:=""
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Count:=1, Name:=""
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Count:=1, Name:=""
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Count:=1, Name:=""
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1
what i'm trying to do is make word go to the next page and delete the first
line and repeat the process till it reaches the last page...my problem is if
i use the command above it will keep on deleting lines even if it had already
reached the last page which in turn could end up deleting the entire last
page...im stuck...any help is greatly appreciated.
Thanks,
Gau
these may be a really simple problem but i can't find the solution by just
looking at VBA help file so i was wondering if anyone can help me with this:
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Count:=1, Name:=""
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Count:=1, Name:=""
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Count:=1, Name:=""
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Count:=1, Name:=""
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1
what i'm trying to do is make word go to the next page and delete the first
line and repeat the process till it reaches the last page...my problem is if
i use the command above it will keep on deleting lines even if it had already
reached the last page which in turn could end up deleting the entire last
page...im stuck...any help is greatly appreciated.
Thanks,
Gau