Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default VBA code translation - compile error

Hi guys,

I am somewhat knowledgable in VBA but I have never seen this before. Someone
at work needed a fix to an exsisting application and it hasn;t been compiled
in a lwhile. When I compiled it it's giving me this error and there are no
help topics for this. Any ideas?

error message: variable required - can't assign to this expression

Code in error (does not like .Date):
Input #Open_File_Id, Quarterly_ROR_Stream(fx_counter).Date, _
Quarterly_ROR_Stream(fx_counter).Return


And what's a "Return_Stream" variable?

--

Thanks in advance,
Matt
(access 2000)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 117
Default VBA code translation - compile error

It looks to me like the line of code is attempting to input 2 pieces of data
into 2 different fields of an array or user-defined-type of some sort. The
user-defined-type or array is named "Quarterly_ROR_Stream", the index that
points to a single record (or element) is "fx_counter", and "Date" and
"Return" are 2 different fields. Was "Quarterly_ROR_Stream" originally
defined in another code module that has been deleted for some reason?

Look for help for the Input # statement in Excel (or Access?). (Type "Input
#" in the Answer Wizard input box.)

"Return_Stream" may be the text stream that is returned from the open
sequential file referenced by the "Open_File_Id" file number.
--
Regards,
Bill


Reply
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
Code translation please N.F[_2_] Excel Discussion (Misc queries) 0 July 6th 07 12:42 AM
Can you help with the correct translation of this code? Just For Fun... Excel Programming 0 September 30th 04 06:16 AM
XlPrevious Translation Code Steve Barwood Excel Programming 2 January 15th 04 03:31 PM
Compile Error in Code Phil Hageman[_3_] Excel Programming 9 October 29th 03 08:52 PM


All times are GMT +1. The time now is 03:46 AM.

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

About Us

"It's about Microsoft Excel"