title: Run R function in VBA macro
body: <p>I'm trying to run a R code from excel VBA macro.</p>
  
  <p>The R function is using two inputs: DataFilter(Input1,Input2)
  The function does some filtering and then saves a new excel file in the folder
  N:\DataFolder</p>
  
  <p>Can you please help in creating an VBA macro that runs the DataFilter function with two new text inputs (lets say cells A1 and B1 from the sheet1 in the spreadsheet).
  From there I will be able to open the excel file in the vba macro.</p>
  
  <p>Thank you!</p>