An implementation of Visual Basic that is built into Microsoft products.
Change the statement to
ChDir "C:\Users\sthom\Documents"
or to any other folder you have access to.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
modle1 attempts to: ChDir "C:\Users\sthom\OneDrive\Wordle." i don't have a onedrive account. this code, which i did not write, causes my vba code to hang up while fixing errors in my code. to overcome this hang up i need to save and reload the file.
An implementation of Visual Basic that is built into Microsoft products.
Change the statement to
ChDir "C:\Users\sthom\Documents"
or to any other folder you have access to.
Hello @Stephen Thompson ,
Thank you for sharing the details. Based on the code shown, this does not appear to be an association between VBA and OneDrive. The macro contains a hard-coded OneDrive folder path:
ChDir "C:\Users\sthom\OneDrive\Wordle"
According to Microsoft’s ChDir statement documentation, ChDir changes the current directory or folder to the path specified in the statement.
Please open the Visual Basic Editor and locate this ChDir line. If the macro does not require a specific working folder, you can remove or comment out the line. Otherwise, replace the OneDrive path with the path of an existing local folder on your computer.
I hope this helps clarify why the macro is referencing OneDrive. If you found my response helpful or informative, I would greatly appreciate it if you could follow this guidance or provide feedback.
Thank you.