shname

  1. S

    Vlookup and sum from multiple sheet

    Hi what is wrong in the UDF Function MLookup(LV As String, Rng As Range, Col As Varient, ShName As Variant) As Integer Dim Ans As Integer For Each Cl In ShName Ans = Ans + Evaluate("=SUM(VLOOKUP(" & LV & "," & Cl & "!" & Rng & "," & Col & ",0))") Next Cl MLookup = Ans End Function...
  2. T

    Find last row of a closed workbook

    This code Sub Test() ' file name, sheet name and column number - change to suit Const FName As String = "P:\TEMP\MrExcel\FileLinks\[MyFile.xls]" Const ShName As String = "Sheet1" Const ColNo As Integer = 1 Dim ShNew As Worksheet Dim LastRow As Long...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top