You can follow my sample code below :
*** Settings ***
Library Selenium2Library
Library ExcelLibrary
*** Variables ***
${path_excel} res/my_excel_file.xls
*** Test Cases ***
Test1
Open Excel ${path_excel}
solved How can I open excel file through ride in robot framework