[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: editing default.format



PureBytes Links

Trading Reference Links

 here is an excel macro that imports to ab.
 this is set up to import all files in the directory so if you only 
want one file you will have to remove the loop and change the path.


 bw
 curt


Sub IMPORT_TO_AB()

     Set oAB = CreateObject("Broker.Application")
     sPath = "D:\AMIBROKER\IntradayData\"
     ChDir "D:\AMIBROKER\IntradayData\"
    
    Tic = Dir(sPath)
    If Tic <> "" Then
     Do Until Tic = ""
     FileName = "D:\AMIBROKER\IntradayData\" & Tic
   
    oAB.Import 0, FileName, "Custom5.format"
    
     Tic = Dir '(sPath)
     Loop
     End If
     oAB.RefreshAll
 'Application.Quit
 End Sub




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/