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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...