Jump to content

Using Input Boxes To Enter Data


josef_

Recommended Posts

I am trying to add some functionality to the script .What i am trying to do is to add input boxes in the script below.I have just gotten into vbscript and have tried few ways to do this but dont understand well enough.if someone could show me some code that i could add to my form i would appreciate itThanks

Set objExcel = CreateObject("Excel.Application")objExcel.Visible = TrueSet objWorkbook = objExcel.Workbooks.Add()Set objWorksheet = objWorkbook.Worksheets(1)objWorksheet.Cells(1,1) = 1objWorksheet.Cells(2,1) = 2objWorksheet.Cells(3,1) = 3objWorksheet.Cells(4,1) = 4objWorksheet.Cells(5,1) = 5Set objRange = objExcel.Range("A1")objRange.End(xlDown).ActivateintNewRow = objExcel.ActiveCell.Row + 1strNewCell = "A" &  intNewRowobjExcel.Range(strNewCell).Activate

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...