Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2006

Tip: Looking for answers? Try searching our database.

Excel/VBA possibilities

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
The Alltime Best - 30 Apr 2006 20:42 GMT
Hello,

I have a question about the possibilities of Excel (in combination with
VBA).
Someone asks me to solve a problem and gives an idea for a possible solution
along with it.
I just want to know if that solution is possible.
Thus I don't ask to solve this problem at this moment, but I only want to
know if it possible in this way.

Namely the following:
One has an Excel-sheet with many columns and rows.

If one starts the .xls-file, a dialog box appears with a couple of fields in
it (easy until now).

By this dialog box, one can choose (e.g. with drop-down menu's or so) which
columns and rows one want to be visible after clicking the OK button. The
idea behind this is that one always needs some columns and rows of a huge
worksheet, but one wants to choose everytime which columns and rows that
are. In this way one can see the desired columns and rows of that huge
worksheet at a glance.
If one is ready with filling in these cells, one clicks on an OK butten
somewhere on the worksheet (e.g. at a taskbar) and the dialog box appears
again to choose another set of columns and rows.

Is this possible or not?

Thanks,
Boudewijn
Tom Ogilvy - 30 Apr 2006 21:16 GMT
Yes.

There are probably several ways you could approach it.
You could construct a userform to display a multiselect listbox with the
names of the columns.

It can be shown in the workbook_Open event or again, in a command button.

Signature

Regards,
Tom Ogilvy

> Hello,
>
[quoted text clipped - 26 lines]
> Thanks,
> Boudewijn
Ron Coderre - 30 Apr 2006 21:18 GMT
What you're describing can be done with VBA.

If you only have a handful of visible row/column scenarios to display you
might want to consider using Custom Views.  Each named Custom View will
retain its visible row/column conifiguration and print settings. Plus, you
could reconfigure/add/delete a Custom View without having to touch your code.

If the selections will be completely variable, though, then option buttons,
checkboxes, list boxes, etc make more sense.

I hope that helps.

***********
Regards,
Ron

XL2002, WinXP-Pro

> Hello,
>
[quoted text clipped - 26 lines]
> Thanks,
> Boudewijn
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.