Hi all,
Is there a way to simplify the two rows code into one?![]()
Private Sub ListBox1_Click() ActiveSheet.Shapes.Range(Array("ListBox1")).Select Range("A1").Value = "" End Sub
Thanks
Hi all,
Is there a way to simplify the two rows code into one?![]()
Private Sub ListBox1_Click() ActiveSheet.Shapes.Range(Array("ListBox1")).Select Range("A1").Value = "" End Sub
Thanks
I wouldn't have thought so.
Maybe:
![]()
Private Sub ListBox1_Click() ActiveSheet.Shapes.Range(Array("ListBox1")).Select: Range("A1").Value = "" End Sub
Still two separate actions but on one line
Regards, TMS
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
[QUOTE=TMShucks;3196864]
Thanks. That's good enough![]()
Private Sub ListBox1_Click() ActiveSheet.Shapes.Range(Array("ListBox1")).Select: Range("A1").Value = "" End Sub
You're welcome. Thanks for the rep.
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
New quick method:
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
Or you can use this way:
How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.
hi DavidRoger, option if I do not miss anything
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks