I wrote a script(macro), which downloads a file but some headers are not in order, they suppose to be in order as a default but I want to choose this order. I can drag and drop HTML elements in Developer Tools, but I want to do How can I change position of HTML Elements with its columns? Also, I added HTML output example
--- MY Code ---
Option Explicit
Dim HTMLDoc As HTMLDocument
Dim login As InternetExplorer
Sub Login_Website()
Dim oHTML_Element As IHTMLElement
Dim login_URL As String
On Error GoTo Err_Clear
' This is login URL to website
login_URL = "Website URL"
Set login = New InternetExplorer ' The object for the login
' Timeout set for the web browser
login.Silent = True
login.timeout = 60
' This parts making Visible or not_Visible
login.Visible = True
Do
' Wait till the Browser is loaded
Loop Until login.readyState = READYSTATE_COMPLETE
Set HTMLDoc = login.document
HTMLDoc.all.os_username.Value = "username"
HTMLDoc.all.os_password.Value = "password"
HTMLDoc.all.Item("login").Click
' To submit Login
For Each oHTML_Element In HTMLDoc.getElementsByTagName("login")
If oHTML_Element.Type = "submit" Then oHTML_Element.Click: Exit For
Next
Do Until login.readyState = READYSTATE_COMPLETE: DoEvents: Loop
--- END : My Code ---
<issuetable-web-componet resolved="">
<table id="issuetable">
<thead>
<tr class="rowHeader">
<th class="colHeaderLink sortable headerrow-issuekey" data-id="issuekey"
rel="issuekey:ASC">
<span title="Sort By Key">Key</span>
</th>
<th class="colHeaderLink sortable headerrow-summary" data-id="summary"
rel="summary:ASC">
<span title="Sort By Summary">Summary</span>
</th>
<th class="colHeaderLink sortable headerrow-status" data-id="status"
rel="status:DESC">
<span title="Sort By Status">Status</span>
</th>
<th class="colHeaderLink headerrow-actions"></th>
</tr>
</thead>
</table>
</issuetable-web-component>
------------------------
This is view of labels on the website.
Current output: on website
| Issuekey | Summary | Status|
2 3 4
1 2 3
what I want : Columns and header change same time
| Summary |Status | Issuekey|
3 4 2
2 3 1
Header with columns position must change as well
--- HTML part should change like this
<issuetable-web-componet resolved="">
<table id="issuetable">
<thead>
<tr class="rowHeader">
<th class="colHeaderLink sortable headerrow-summary" data-id="summary"
rel="summary:ASC">
<span title="Sort By Summary">Summary</span>
</th>
<th class="colHeaderLink sortable headerrow-status" data-id="status"
rel="status:DESC">
<span title="Sort By Status">Status</span>
</th>
<th class="colHeaderLink sortable headerrow-issuekey" data-id="issuekey"
rel="issuekey:ASC">
<span title="Sort By Key">Key</span>
</th>
<th class="colHeaderLink headerrow-actions"></th>
</tr>
</thead>
</table>
</issuetable-web-component>