PC Review


Reply
Thread Tools Rate Thread

create a break in the run of code

 
 
=?Utf-8?B?RGFu?=
Guest
Posts: n/a
 
      30th Jul 2007
Hi,
I am importing to excel data from another application (Bloomberg) then
creating a graph from it.
I have noticed that the data is not imported properly (only the firlt line
is displyed) unless I call a message box between the import of data and the
graph plotting of data ( I guess it needs some kind of break in order to copy
the data).
My problem is that I do not want this message box and trying to find a way
to closed automatically, I have tried sendimg {enter} via send key, I have
tried to just put a Application.Wait Now + TimeValue("00:00:05") intead of
calling a msgbox. But all that dis not work either.
Any idea
Thanks
Dan

 
Reply With Quote
 
 
 
 
Jim Rech
Guest
Posts: n/a
 
      30th Jul 2007
You might try looping with DoEvents until you get data

Sub MyCode()
Range("A1").ClearContents
''Code calling Bloomberg
Do
DoEvents
Loop Until Range("A1").Value <>""
End Sub

--
Jim
"Dan" <(E-Mail Removed)> wrote in message
news:8682C817-B371-4DE0-9F90-(E-Mail Removed)...
| Hi,
| I am importing to excel data from another application (Bloomberg) then
| creating a graph from it.
| I have noticed that the data is not imported properly (only the firlt line
| is displyed) unless I call a message box between the import of data and
the
| graph plotting of data ( I guess it needs some kind of break in order to
copy
| the data).
| My problem is that I do not want this message box and trying to find a way
| to closed automatically, I have tried sendimg {enter} via send key, I have
| tried to just put a Application.Wait Now + TimeValue("00:00:05") intead of
| calling a msgbox. But all that dis not work either.
| Any idea
| Thanks
| Dan
|


 
Reply With Quote
 
=?Utf-8?B?RGFu?=
Guest
Posts: n/a
 
      30th Jul 2007
Thanks

"Jim Rech" wrote:

> You might try looping with DoEvents until you get data
>
> Sub MyCode()
> Range("A1").ClearContents
> ''Code calling Bloomberg
> Do
> DoEvents
> Loop Until Range("A1").Value <>""
> End Sub
>
> --
> Jim
> "Dan" <(E-Mail Removed)> wrote in message
> news:8682C817-B371-4DE0-9F90-(E-Mail Removed)...
> | Hi,
> | I am importing to excel data from another application (Bloomberg) then
> | creating a graph from it.
> | I have noticed that the data is not imported properly (only the firlt line
> | is displyed) unless I call a message box between the import of data and
> the
> | graph plotting of data ( I guess it needs some kind of break in order to
> copy
> | the data).
> | My problem is that I do not want this message box and trying to find a way
> | to closed automatically, I have tried sendimg {enter} via send key, I have
> | tried to just put a Application.Wait Now + TimeValue("00:00:05") intead of
> | calling a msgbox. But all that dis not work either.
> | Any idea
> | Thanks
> | Dan
> |
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How best to break up code shelfish Microsoft Excel Programming 8 9th May 2008 06:02 PM
Break Into Code =?Utf-8?B?RGF3biBT?= Microsoft Access 4 25th Apr 2007 06:36 PM
OnTime code error "can't execute code in break mode" tskogstrom Microsoft Excel Programming 1 8th Sep 2006 10:29 AM
add page break code in csv file to force break when loading. tim Microsoft Excel Misc 3 1st Apr 2004 01:49 AM
Re: Break out of Code Chip Pearson Microsoft Excel Programming 0 6th Aug 2003 03:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:09 PM.