Putting a value in a cell using VBS
<p>Anyone knows how to put a value in a cell using <strong>VBS</strong>? I have this code so far:</p>

<pre><code>option explicit
Dim objWorkbook, wb, ws,logname,user, objExcel,cell

Const xlUp = -4162

Set objWorkbook = CreateObject("Excel.Application")
set user = CreateObject("wscript.network")
logname = user.Username

objWorkbook.Visible = True

Set wb = objWorkbook.Workbooks.Open("C:\test\test.xlsx")
Set ws = wb.Worksheets(1)

With ws
  .Range("A" &amp; .Rows.Count).End(xlUp).Row 'put the value of logname
  .Range("A" &amp; .Rows.Count).End(xlUp).Row 'put the value of date()
  .Range("A" &amp; .Rows.Count).End(xlUp).Row 'put the value of time()
End With
</code></pre>

<p>After executing the code, it should increment so that for the next insertion of data, the data to be inserted will be inserted next line with no data. Thanks in advance!</p>