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: 42
Default function call paramater question

currently am using code:

Dim intMaterial As Integer
Dim strMaterial As String
strMaterial = ActiveCell.Offset([0], [-15])
intMaterial = ConvertMaterial(strMaterial)

the above works, but was going to try to reduce by two lines to:

Dim intMaterial As Integer
intMaterial = ConvertMaterial(ActiveCell.Offset([0], [-15]))

ConvertMaterial is my own function that takes in a string and returns an int.
Any ideas how to do 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
Excel lookups should have a return paramater if not found LJ Excel Worksheet Functions 3 January 14th 10 05:14 PM
Display Paramater value in a cell cyb3rwolf Excel Discussion (Misc queries) 3 August 13th 08 03:53 AM
Paramater driven value Andrew Excel Worksheet Functions 2 January 29th 08 12:19 PM
Naming Pivot Table Paramater Report Shrikant Excel Discussion (Misc queries) 3 August 25th 05 10:15 PM
Newbie question: function call wachen Excel Programming 1 September 24th 04 07:05 PM


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