I've been asked to create a kind of translator through Excel 2010 and Visual FOXPRO, But I don't know Visual FP, Someone can explains me how to connect them? I'm using WIN10, Office 2010.
Your questions doesn't really explain what you need.
If you don't know VFP, how would you connect using VFP? Still are you asking sample code to connect to Excel and do some stuff? If so you don't only need to know VFP, but Excel VBA as well. Excel use VBA for its own processing. Below is a very simple VFP code. Check the comments for what it does (the code within the with ... endwith block is Excel VBA).
* Select sample data and copy to clipboard as TAB delimited
Select * From (_Samples+'data\customer') ;
Into Cursor crsMyData ;
nofilter
Local lcTemp
lcTemp = ForcePath(Sys(2015)+'.tmp', Sys(2023))
Copy To (m.lcTemp) Type Delimited With "" With Tab
_Cliptext = Filetostr(m.lcTemp)
Erase (m.lcTemp)
* Select sample data and copy to clipboard as TAB delimited
* Create Excel Workbook
* and paste the data copied above
* starting at A3
* and autofit columns
oExcel = Createobject('Excel.Application')
With oExcel
.Workbooks.Add()
.Activeworkbook.Activesheet.Range('A3').PasteSpecial()
.Selection.Name = 'myData'
.Range('A1').Activate()
.Range('myData').Columns.Autofit()
.Visible = .T.
Endwith