Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am new to VB coding and trying to develop a few tools to make lif
easier for myself. Currently, I am trying to insert values in a table user-inputs fields for results. After the inputs, I want to look up results according to age. For a test run I am trying some coding in simple form, as shown below: Function TestRun(AnyNo As Integer) Call TRun(AnyNo) TestRun = Range("A7") End Function Sub TRun(AnyNo) Range("A7") = AnyNo End Sub This works when I run it in the Immidiate Window but not on th worksheet. Is there a certain setup in excel that I need checke before this method can work? If no, are there altervatives for such a method to work? Thanks -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Call a subroutine using variable subroutine name | Excel Discussion (Misc queries) | |||
Calling a function in my SQL-DB from VBA | Excel Discussion (Misc queries) | |||
calling a new function Excel gives me #NAME? | Excel Worksheet Functions | |||
how to make a link to a function or subroutine... | Excel Programming | |||
Calling the Solver via a subroutine | Excel Programming |