Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP, Word, selected cell in table
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
VFP, Word, selected cell in table
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01045304
Message ID:
01045304
Views:
70
Hi:
1) I am working with Word and have a table
oWord = CreateObject("Word.Application")
oWord.Visible = .t.
oDocument = oWord.Documents.Add()
CopyTable = oDocument.Tables.Add(oRange ,oRow, oColNum, wdWord9TableBehavior, wdAutoFitContent)
2) But my questions is this. Someone clicks on a particular cell in this table.
Is there a function that will tell me which cell has been selected?

From the command line in VFP, I can select a particular cell like this:
CopyTable.Cell(1,3).Select
The problem came up because when I did
CopyTable.Cell(1,1).Select
it selected row 1 and column 2 and I could not seem to select row 1 and column 1

Thanks
Steve
Next
Reply
Map
View

Click here to load this message in the networking platform