Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
Igor Jecmenic Igor Jecmenic is offline
external usenet poster
 
Posts: 1
Default Selected Table cells problem - range of cells is not continious

1. I had table of 3 columns and 4 rows.
2. Select cells
row 1 column 3
row 2 columng 4

Word.Selection selection;
bool isSelectionInTable = (bool)selection.get_Information(
Word.WdInformation.wdWithInTable );
if( isSelectionInTable ) {
int numberOfSelectedCells = selection.Cells.Count; // only 1
}
Code returns only one selected cells

Is there any way to get all 2 selected cells?

Thank you,
Igor
  #2   Report Post  
Posted to microsoft.public.word.tables
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Selected Table cells problem - range of cells is not continious

No, that is not possible in VBA. See
http://support.microsoft.com/?kbid=288424.

--
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.

Igor Jecmenic wrote:
1. I had table of 3 columns and 4 rows.
2. Select cells
row 1 column 3
row 2 columng 4

Word.Selection selection;
bool isSelectionInTable = (bool)selection.get_Information(
Word.WdInformation.wdWithInTable );
if( isSelectionInTable ) {
int numberOfSelectedCells = selection.Cells.Count; // only 1
}
Code returns only one selected cells

Is there any way to get all 2 selected cells?

Thank you,
Igor



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
Count Number of Selected Cells In A Table? Hapless Tables 2 September 23rd 08 12:25 PM
Resize Word table cells without moving/resizing the other cells? hoozieg Tables 2 October 4th 07 11:15 PM
specifying a range of cells in excel when mailmerging [email protected] Mailmerge 1 August 30th 06 02:27 PM
MS Word: select cells range and duplicate same data in all cells clarice Microsoft Word Help 0 June 1st 06 04:19 AM
how do I resize selected cells in a table? Kati Tables 1 October 16th 05 09:05 PM


All times are GMT +1. The time now is 03:35 PM.

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"