Tried to add value to closed excel, but I got Run Time Error '91' : Object Variable or With Block not Set.
Code:
Dim xl0 As New Excel.Application
Dim xlw As New Excel.Workbook
Dim xlsh As Worksheet
Set xlsh = Sheet3
Set xlw = xl0.Workbooks.Open("\\Addition\RCA.xlsx")
xl0.Worksheets.Add
xl0.xlsh.Cells(1, 1) = RANGECheck
xl0.xlsh.Cells(1, 2) = RCAInput
xlw.save
xlw.Close
Set xl0 = Nothing
Set xlw = Nothing
Also, the above code enters value in first row, what can we do to add the value after the last row having value?