If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Excel VBA Copy Problem (Keystrokes?)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-07, 11:19
vjmehra vjmehra is offline
Registered User
 
Join Date: May 2004
Posts: 13
Excel VBA Copy Problem (Keystrokes?)

Hi,

I have written some code which calls up a Bloomberg screen and inputs the relevant data based on that entered into an Excel spreadsheet, this all works fine, however I now need to pull the results back from Bloomberg and paste the data into Excel.

According to Bloomberg there is no command line copy command so I am at a bit of a loss here, is there any way to perhaps send the CTRL+C keystroke via VBA to a Bloomberg window (I've seen articles, which suggest this might be possible but I can not get it to work).

Would really appreciate it if anyone is able to help out here as my whole project is essentially pointless unless I can pull the data back into Excel!
Reply With Quote
  #2 (permalink)  
Old 12-09-07, 14:25
norie norie is offline
Registered User
 
Join Date: Mar 2006
Posts: 163
What do you mean by a Bloomberg 'window' exactly?
Reply With Quote
  #3 (permalink)  
Old 12-09-07, 14:32
vjmehra vjmehra is offline
Registered User
 
Join Date: May 2004
Posts: 13
It is basically a non-web based (Bloomberg command shell) window (does that make sense?).

However I have a found a code sample that uses a modified version of sendkeys to copy the data.

The problem I now have is that the procedures all run, but it tries to copy the data as soon as they have been sent to Bloomberg, I need to insert a pause of x seconds to delay the copy and paste commands firing. Any idea how I do this?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On