[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Excel OLE in VB - Vertical Scroll Bars and Multiple Worksheets

Posted on 2004-10-28
4
Medium Priority
?
539 Views
Last Modified: 2013-11-25
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.
0
Comment
Question by:JamesGTX
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 48

Expert Comment

by:Mikal613
ID: 12435973
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12435998
0
 
LVL 48

Accepted Solution

by:
Mikal613 earned 1500 total points
ID: 12436023
0
 
LVL 5

Expert Comment

by:RogueSolutions
ID: 12436133
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question