tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,194
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
I have this code which currently runs on a sheet called "Amav"
I'd like to Make a list of sheet names down column A (From 2 to last row) and have the macro run on each name
How do I adjust the code so it does this?
Thanks
Tony
I have this code which currently runs on a sheet called "Amav"
I'd like to Make a list of sheet names down column A (From 2 to last row) and have the macro run on each name
How do I adjust the code so it does this?
Thanks
Tony
VBA Code:
Sub Text_to_Numbers()
sht = "Amav"
With sht.Range("I2:I" & Cells(Rows.Count, "I").End(xlUp).Row) 'text to numbers
.NumberFormat = "General"
.Value = .Value
End With
End Sub