A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I select multiple rows by using VBA?



 
 
Thread Tools Display Modes
  #1  
Old January 13th, 2010, 04:37 PM posted to microsoft.public.word.tables
Kenneth lEE
external usenet poster
 
Posts: 1
Default How do I select multiple rows by using VBA?

How do I select multiple rows by using VBA? e.g. Row 2,4,6,8

Thanks so much
  #2  
Old January 13th, 2010, 04:42 PM posted to microsoft.public.word.tables
Jay Freedman
external usenet poster
 
Posts: 9,488
Default How do I select multiple rows by using VBA?

Kenneth lEE wrote:
How do I select multiple rows by using VBA? e.g. Row 2,4,6,8

Thanks so much


In VBA, you can't select multiple pieces of text (rows or anything else)
that aren't continuous. See http://support.microsoft.com/?kbid=288424.

The best you can do is to select one piece at a time, working in a loop.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:55 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.