I'm new in VBA , so i would lile to store values from inputbox into array , i wrote the code below , then i tried define a array to store them , i got the issue with my VBA code , could you please help check ? any assist will be appreciated
Sub inpubox()
Dim sn As String
Dim em_ID As String
Dim name As String
Dim dept As String
Dim hostname As String
Dim loc As String
sn = InputBox("Enter Laptop's Serial")
em_ID = InputBox("Enter Colleague ID")
name = InputBox("Enter Colleague Name")
dept = InputBox("Enter Colleague department")
loc = InputBox("Enter office location")
'Xu li hostname
hostname = "VN" & loc & sn
sodong = Sheet1.Range("A" & Rows.Count).End(xlUp).Offset(1).row
Dim arr6 As String
arr6 =(sn,em_id,name,dept,hostname,loc)
End Sub

arr6 = split(sn&","&em_ID&","&name&","&dept&","&hostname&","&loc, ",").. this will give you 0 based arr6Dim arr6() As Stringwill give you string type array.