Excel OLE in VB - Vertical Scroll Bars and Multiple Worksheets

In the project I am currently working on, in VB 6, I am trying to add an Excel OLE object.  I can get the worksheet to come up but I don't see any scroll bars.  How do I get the scroll bars (vertical) to appearand work to allow the user to scroll through the worksheet?  Also, the users want a multiple page worksheet to appear. They want each page to be editable and then to print each and every worksheet.  I currently print a report using word9.  I want to get all of the Excel worksheets to print into this word9 document.  I am a novice programmer so all help, patience, and direction is greatly appreciated.
JamesGTXAsked:
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.

Mikal613Commented:
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
RogueSolutionsCommented:
You have a lot of reading to do there.  The key part (which is doubtless mentioned in many of the above links) is ...

         OLE1.DoVerb vbOLEUIActivate
         OLE1.SizeMode = 1

Assuming your OLE object is called OLE1 then those two lines of code will activate the spreadsheet object and force it to resize nicely to the area of the form you have allocated it.

Activation gets you scrollbars and the worksheet tabs.

Activation also creates a menu (basically Excel's menu) so the users would have access to the standrad File Print method.

Definitely worth reading through the links provided as there will be other things you'll need to know about OLE objects as you progress.
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 Development

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.