• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Using the wildcards to delete multiple

Manan

New Member
Hi ,

I have coded a VBA MAcro where i have writtne like below
Code:
 ActiveWorkbook.Connections("getHistoricalData1").Delete
 ActiveWorkbook.Connections("getHistoricalData2").Delete
 ActiveWorkbook.Connections("getHistoricalData3").Delete
 ActiveWorkbook.Connections("getHistoricalData4").Delete
 ActiveWorkbook.Connections("getHistoricalData5").Delete
 ActiveWorkbook.Connections("getHistoricalData6").Delete
 ActiveWorkbook.Connections("getHistoricalData7").Delete

but i have many such connections .Is their any way to have like
ActiveWorkbook.Connections("getHistoricalData****").Delete
i mean it will delete everything that comes after getHistoricalData string.
 
Back
Top