LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Passing Values Syntax

I'm trying to create a tool that values various stock option
positions. I want to read in option values (the strike and cost) and
pass that information into prodcedures that calculate and graph the
payoff.

I'm having trouble passing the information from procedure to
procedure. A bit of pseudo-code might help:

Sub BullSpread()
GetPrices(strike1,strike2,cost1,cost2)
if strike1<shareprice then
blah blah
endif
.....
end sub

sub getprices()
strike1=range("A1")
strike2=range("B1")
......
end sub

I can't seem to get the GetPrices routine to pass the bits of info -
debugging shows the variables as "empty". I can't seem to figure out
what goes in the parentheses when calling/returning.

Thanks for any help.
 
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
passing values to other sheets [email protected] New Users to Excel 1 February 23rd 08 02:03 AM
Passing values in Sheet to VBA Jonathan Charts and Charting in Excel 1 June 30th 06 06:00 AM
Passing Values to Function Newbie Excel Programming 2 January 8th 04 06:01 PM
Passing values between 2 subs ? [email protected] Excel Programming 1 November 21st 03 05:56 PM
passing values from one sheet to another BubBob[_2_] Excel Programming 1 September 4th 03 01:09 PM


All times are GMT +1. The time now is 01:09 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"