Hello i want to ask about some problem about excel, i have some data like this:
and i have import that JSON data to excel with modules from https://github.com/TheEricBurnett/Excellent-JSON
and my code form are
Private Sub ImportJSONFIle_Click()
Dim fd As Office.FileDialog
Set fd = Application.FileDialog(msoFileDialogFilePicker)
With fd
.Title = "Select a JSON File"
.AllowMultiSelect = False
If .Show() Then
Filename = .SelectedItems(1)
Dim content As String
Dim iFile As Integer: iFile = FreeFile
Open Filename For Input As #iFile
content = Input(LOF(iFile), iFile)
' Parse JSON String
Dim dummyData As Object
Set dummyData = JsonConverter.ParseJson(content)
i = 1
For Each dummyDatas In dummyData
Cells(i, 1) = dummyDatas("nama")
Cells(i, 2) = dummyDatas("email")
i = i + 1
Next
Close #iFile
End If
End With End Sub
finally the result is:
Here i want to ask how to make the data written horizontally not vertically? Here the result what i want :


