Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50123

Simplify macro code

$
0
0
Hi all,

Code:

Private Sub ListBox1_Click()

    ActiveSheet.Shapes.Range(Array("ListBox1")).Select
    Range("A1").Value = ""

End Sub

Is there a way to simplify the two rows code into one?

Thanks

Viewing all articles
Browse latest Browse all 50123

Trending Articles