i have 5028 rows excluding the headings and 3 columns, want to set value 1.7 in the cloumn “C” by changing the value in the column “B”.
using goal seek option it is possible only for one cell. i want to do the same for 5028 rows, please help to do the task by running some macro.
John Bustos pointed to the right idea, here is a working solution:
Edit:
Use
ActiveSheet.UsedRange.Rowsinstead ofUsedRange.Rows, if you intend to use this as a Macro in a Modul, not as one of a Worksheet – or any other reference to a valid Range.For your example, you might prefer to use:
Range("A2:C5028").RowsorMySheet.Range("A2:C5028").Rows.Edit: