Hello Evan Lei1,
Thank you for writing to us here in the Microsoft Community.
Based on your message, it sounds like you're experiencing issues with your Excel VBA. For this question is already out of my specialty and this is more complex and requires assistance upfront. I suggest posting your case here on Newest 'vba' Questions - Stack Overflow. Our experts can help you with your concerns. The VBA forums have a wealth of resources when it comes to VBA concerns.
We will also leave the thread open for all volunteer moderators to join us and share their opinions/suggestions to help you address your concerns.
I hope you find this information helpful.
Regards,
Michael Jr.
Microsoft Moderator