samaguire / TabularEditorScripts

MIT License
19 stars 0 forks source link

Add exits on macros reliant on measures/columns #22

Open samaguire opened 2 years ago

samaguire commented 2 years ago

i.e. add this to the start if (!Selected.Measures.Any()) { return; } or if(Selected.Columns.Count == 0 && Selected.Measures.Count == 0) throw new Exception("No columns or measures selected!");