LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
djd djd is offline
external usenet poster
 
Posts: 11
Default How to pass sheet reference to a procedure

I have a worksheet that will calculate the cost of various services based on
the quantities and other information entered on a worksheet. Because this
worksheet can be copied multiple times in the workbook, I added a button to
the worksheet that will call a vba procedure that will contain the decision
logic and the cost calculations. I would like to use named cells so that the
logic is self-documenting for maintenance purposes.

Due to the number of inputs to the procedure I don't want to pass the values
entered as arguments. The inputs will not be modified only the costs cells
so I was thinking of passing the sheet using ByVal. I can't find anything
that says you couldn't do this in a book. Is this possible? Any gottcha's
in doing this?

 
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
How to pass a variable from Form back to calling procedure John[_111_] Excel Programming 4 August 21st 05 03:54 PM
Pass switch to Main procedure Bob Phillips[_6_] Excel Programming 0 August 3rd 05 11:23 PM
Can Not Add a Reference to a Procedure GordonC Excel Programming 2 March 1st 05 07:45 PM
How can I reference a procedure in an Add In? June Macleod Excel Discussion (Misc queries) 4 November 30th 04 06:35 PM
How to pass an Excel range as an argument to a SQL Server stored Procedure Belinda Excel Programming 7 April 8th 04 11:24 AM


All times are GMT +1. The time now is 11:05 PM.

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"