Unable to move UserForm in coding window from top LH corner.

Brian Dalby 25 Reputation points
2023-08-18T12:21:11.27+00:00

I have been playing with User forms in VBA Excel. This morning I created a new form as I acidentally deleted the old one from earlier, and it appeared at the top left of the window. I am unable to move it, although I can change properties such as Name, Caption and size, but it will not allow me to move it. Changing left and top from 0 and it still doesn't move. The "X to close it doesn't work either. I can remove it and start again, but the same thing happens. Resizing the coding window also takes the form with it. I can resize and put controls in it, but even after closing and deleting the sheet it's on, it happens the next time I open it. I am sure yetserday I could move the form in the coding window - or am I mistaken, and the top and left properties only work at Run time?

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,176 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,342 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.