Create a floating worksheet in excel

I am trying to troubleshoot a spreadsheet that uses one worksheet as a user form and another worksheet as the report form.  The form worksheet is positioned at the top and basically consists of some command buttons to run the report worksheet for a specific day, print the report, and close the report.  The report worksheet sits directly below the form worksheet.  Both are sized to take up the entire width of the excel application window.

I have not been able to get the code to resize my windows to work correctly.  Here is the code that I am working with.  I have been getting an error when attempting to set the width.  The error states that it is unable to set the width property of the window class.

ActiveWindow.WindowState = xlNormal
ActiveWindow.Width = 768.75
ActiveWindow.Height = 122.75
ActiveWindow.Top = 1.75
ActiveWindow.Left = 1.75
ActiveWindow.DisplayWorkbookTabs = True

I will also attach the entire spreadsheet.  Thanks in advance.
MON10---Primary-Disinfection.xls
Aaron GreeneProgrammerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rob HensonFinance AnalystCommented:
Tried opening the file but can't see what you are trying to do. Have you looked at using an actual User Form?

The form can be set to hover over the existing sheet but the sheet still has focus unless you click buttons on the User Form.

The Form can be set to Show on workbook open and its position can be programmed.

Thanks
Rob H
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Aaron GreeneProgrammerAuthor Commented:
I think that using an actual user form is going to be the most direct answer to this.  Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.