I´m wondering how to call a second VBscript with the data from the first VBscript. Example:
script1 run querys - sends the data to script2 - script2 writes data in Excel workbook.
Then I can reuse script2 for other things.
How to do?
That works in Excel but how do I re-write it so I can run it in an .vbs-file?
I´m verry new at this!!
That:
Sub atest()
For Each cell In Range("A:A"
cell.Select
If LastLine Then
MsgBox cell.Row
Exit For
End If
Next
End Sub
Function LastLine() As Boolean
With ActiveCell
If IsEmpty(.Value) Then
If .End(xlDown).Row = Cells.Rows.Count Then _
LastLine = True
Exit Function
Else
LastLine = False
End If
End With
End Function
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.