Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function exporttoexcel()
- { //export to excel
- if (tableSortArray.length > 0)
- {
- var t, arr;
- var tempArray=new Array();
- for(var i=0; i, i<tableSortArray.length; i++) {
- arr = tableSortArray[i].toString();
- arrr = (arr.split(","));
- if (i==0) { t = arrr[1]; }
- else { t += ','+arrr[1]; }
- }
- document.excel.t.value = t;
- }
- // I left out some mumbojumbo about sorting here
- document.excel.submit();
- }
- ' Delete any old stray copies of the module1
- On Error Resume Next
- Kill ("C:MrXL1.bas")
- On Error GoTo 0
- ' Export Module 1
- ActiveWorkbook.VBProject.VBComponents("module1").Export ("c:MrXL1.bas")
- For x = 1 to 54
- ThisBroker = Sheets("BrokerList").range("A" & x).value
Add Comment
Please, Sign In to add comment