In addition to my many posts showing that chat gpt can't even remotely be relied upon or trusted (in addition to failing the simplest "what's wrong with this code" imaginable for vba, no more), also this. You may be in love with chatgpt, but I was in love with my first girlfriend, too.
Thank God I realized what a poor match that was - or better said, others realized and pressured me to drop ties!