Question: does vba work with google sheets?
Answer: Google Sheets does not support VBA -- which stands for Visual Basic for Applications, a Microsoft language derived from Visual Basic. What Sheets does support is Javascript functions working just as macros.