Link to home
Start Free TrialLog in
Avatar of excelismagic
excelismagic

asked on

wb.Worksheets(1).Range("A17", "B18", "R19", "S20").Value = "OK" Does not work

i want to use vba to update these non adjacent cells value to "OK"  but this method is not working

wb.Worksheets(1).Range("C17", "C18", "C19", "C20").Value = "OK"

how can i make this work?
ASKER CERTIFIED SOLUTION
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of excelismagic
excelismagic

ASKER

can this work even if it is non adjacent cells?

liek this Range("C17, D18, R11, W27")
Yes, it will work in that case also.