I need to perform certain formatting to a series of open files. I came up with a small macro, that as I go along will expand into further formatting. My two biggest questions are:
1.- I am needing to specify in the macro manually before running it to variables to be changed in the worksheet. Is there a way to be prompted for this variables and once inputed in the first file, it does not ask in the next files to be ran?
2.- How do you loop/toggle between the files you are wanting to perform the formatting in the macro below without having to specifically name them in the macro?
All inputs will greatly appreciated.
Oscar
1.- I am needing to specify in the macro manually before running it to variables to be changed in the worksheet. Is there a way to be prompted for this variables and once inputed in the first file, it does not ask in the next files to be ran?
2.- How do you loop/toggle between the files you are wanting to perform the formatting in the macro below without having to specifically name them in the macro?
Code:
Sub ChangeCellNameandSheetName()
Sheets(1).Select
Range("A3").Select
Selection.NumberFormat = "@"
ActiveCell.Formula = "2-18-05"
Sheets(1).Name = "2-18"
End Sub
All inputs will greatly appreciated.
Oscar