need to runt his macro twice for it to work

daveyc18

Well-known Member
Joined
Feb 11, 2013
Messages
755
Office Version
  1. 365
  2. 2010
this might be a a tricky one since not eveyrone here is famialr with ADP/Broadridge.

Code:
    Dim ws As Worksheet
    Dim tmp As Worksheet
    Dim acct As String
    


    
    
    Set ws = Sheets("Booking")
    Set tmp = ThisWorkbook.Worksheets.Add
    tmp.Activate


    On Error Resume Next
    AppActivate "BTS", True
    On Error GoTo 0
    Sleep 1000
    
 
    On Error Resume Next
    
     
     
     
     
    SendKeys "MRGN", True 'enter margin
    Sleep 500
    SendKeys "^", True 'reset
    Sleep 500
    SendKeys "40911025", True ' enter account number
    SendKeys "{F3}", True 'get balance secreen
    Sleep 750 'waits X seconds
   SendKeys "^{INSERT}", True 'copy
    Sleep 100
    tmp.Activate
    
  tmp.Range("A1").Select
     tmp.PasteSpecial Format:="Text", Link:=False, DisplayAsIcon:=False
     
    
            ws.Range("I7") = Trim(Left(tmp.Range("A7"), 13)) 'GetEquity
            ws.Range("I9") = Trim(Left(tmp.Range("A9"), 13)) 'GetMM
            ws.Range("I11") = Trim(Left(tmp.Range("A11"), 13)) 'GetDebt
            ws.Range("I13") = Trim(Left(tmp.Range("A13"), 13)) 'GetL250
            


 
    
 
    Application.DisplayAlerts = False
    
    
    
   tmp.Delete
   
   
   
   
   
      Application.DisplayAlerts = True
    Application.ScreenUpdating = True
      
      
   Sheets("Booking").Activate
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,223,879
Messages
6,175,148
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top