We have a spreadsheet containing 56 worksheets. Each worksheet is used to define similar devices, so their structure is identical, and their data is similar. The print range is defined in every sheet and is the limit of data in the sheet.
I have been asked to make some global changes to the spreadsheet. How can I write some VBA which loops through every worksheet and, within the print range, tests for a small number of conditions and then alters cells as a result?
Something like:
for each worksheet in spreadsheet
for each row in the print range do
‘ first change
if column A = “Radio Status” and column D = “Power” then column W =”##.#”
‘ next change
if column A = “Alarm Setpoint” then column R = 0 and column S = 9999
‘ next change
‘etc
This seems simple enough, but I haven’t done much VBA in Excel (lots in Access, and a bit in Word)
thanks in advance