Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Run time 1004

I am trying to use the Reuters quote function in a macro. I have created a
string that gets the symbols and date from cells of the excel file. I can
successfully have the strinf displayed in a message box to show that I have
successfully created the function for reuters. However when I attempt to
have this inputed into a cell I get the runtime 1004 error. can you help?
thanks

Sub valuation()


Dim tdate As String
Dim symbol As String
Dim price As String
Dim valuation As String
Dim f1 As String
Dim f2 As String
Dim f3 As String
Dim f4 As String
Dim f5 As String
Dim f6 As String

Range("A2").Activate
tdate = ActiveCell
symbol = ActiveCell.Offset(0, 1)

valuation = ActiveCell.Offset(0, 3)

f2 = ",,"
f3 = ","
f4 = "close"
f5 = Chr(34)

f1 = "=RTD(" & f5 & "ReutersRTD.HystoricalQuote"" "

f6 = f1 & f2 & symbol & f3 & f5 & f4 & f5 & f3 & tdate & f3 & f5 & f5

Range("A2").Activate
tdate = ActiveCell
symbol = ActiveCell.Offset(0, 1)

MsgBox (f6)

ActiveCell.Offset(0, 2) = f6

End Sub

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
run time error 1004 brownti via OfficeKB.com Excel Discussion (Misc queries) 5 February 14th 07 04:50 PM
run time error 1004 Louise Excel Worksheet Functions 0 January 18th 07 08:16 PM
Run-Time error '1004' [email protected] Excel Discussion (Misc queries) 3 March 29th 06 08:13 PM
Run time error 1004 Potoroo Excel Discussion (Misc queries) 2 December 30th 05 02:42 AM
Run Time Error '1004' D Huber Excel Worksheet Functions 1 September 23rd 05 03:52 PM


All times are GMT +1. The time now is 04:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"