Consulting

Results 1 to 9 of 9

Thread: Cannot get Application Caller to work

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Banned VBAX Newbie
    Joined
    Nov 2023
    Posts
    2
    Location
    you can pass the calling cell's address and worksheet name as additional parameters to your function.
    Here's an example:
    Public Function CountT(iRow As Integer, callerAddress As String, callerSheet As String) As Integer 
    Debug.Print "Caller Address: " & callerAddress 
    Debug.Print "Caller Worksheet: " & callerSheet 
    ' Your function logic here 
    ' For example, return the row count based on the provided parameters CountT = iRow 
    End Function
    Last edited by Aussiebear; 11-28-2023 at 12:53 AM. Reason: Removed yet another spam link in the post

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •