Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Move cursor in Excel
Message
 
To
14/11/2006 15:27:16
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01169625
Message ID:
01169697
Views:
7
Don

For the purpose of setting values to various cells you don't have to select the cell first.

oExcel.Range('A2').Value = "Whatever" will put "Whatever" in cell A2.

But to answer your question the syntax is:

lo.ActiveSheet.Range("A2").Activate Or oExcel.Range('A2').Activate

Your .ActiveCell.Value = "something" will have the same effect as above.

Regards

Mathias

>I know I've asked this question before but I can't seem to find any reference to the answer.
>Suppose you have a spreadsheet open in excel, how do you move the cursor to the right or left?
>
>oExcel.Range('A2').select
>oExcel.ActiveCell.value = crsChart.year
>
>oExcel.MoveRight
>
>
>etc.
>
>
>Thanks
Mathias Banda

Time is longer than a rope.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform