Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. michoohol

    range variable in excel

    findLastRow is a function as follows Function findLastRow() As Long Dim lastRow As Long If WorksheetFunction.CountA(Cells) > 0 Then 'Search for any entry, by searching backwards by Rows. lastRow = Cells.Find(What:="*", After:=[A1], _...
  2. michoohol

    range variable in excel

    I need to select dynamic range for formatting. How can I use a variable in VBA for this purpose? refRow = findLastRow targetRange = "G3:H" & Format(refRow) ActiveSheet.Range(targetRange).Select This code does not work. Could you help me this?

Part and Inventory Search

Back
Top