Forum Discussion

Nickerz_2020's avatar
Nickerz_2020
Brass Contributor
Mar 11, 2021
Solved

HELP Creating A Macro...

I was able to create a macro to perform a simple function that I have to keep repeating (sorting columns within different spreadsheets). However, I can't get it to complete the function. Right now, a...
  • HansVogelaar's avatar
    Mar 11, 2021

    Nickerz_2020 

    Replace all occurrences of ActiveWorkbook.Worksheets("03052021_SFC_DSS_Winbacks") with ActiveSheet

    That way, the macro will work regardless of the name of the active sheet.

    Remove all those lines with ActiveWindow.ScrollRow = ...

    They are not needed for the functioning of the macro.

Resources