Results 1 to 18 of 18

Thread: Get row number from a closed workbook

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #18
    VBAX Regular
    Joined
    Feb 2025
    Posts
    6
    Location
    Never mind, I figured it out. It was basically just syntax, as expected...


    I did modify the code so that the "Line" variable contains the entire path, filename, and necessary syntax, so it looks like:


    Line = MyPath & "[" & myFile & "]" & wsname & "'"



    And the final code looks like:


    f = "=IfError(match(""" & Text & """, " & Line & "!$B:$B,0),""not found"")"
    Last edited by Aussiebear; 02-15-2025 at 12:18 AM. Reason: Added code tags to supplied code

Posting Permissions

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