LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default need help getting combobox to open a file

this is a bit hard to explain and im pretty new with excel.

what i need is a combobox (will have to add about 20 of these) which
lists a value of my choosing, and when a user clicks one of these items
in the list, it opens a file for that item. It would be useful if the
items in the combobox were added/removed as i add and remove the items
from the list that will be used to fill the box.

the filenames will NOT be the same as the text in the combobox, and
they will not be excel files, and for some of them it may just need to
open a folder rather than a file.

The idea ive had so far is have a hidden sheet with the list of text
that i want in the combobox, and also for each of these text items make
a hyperlink to the file or folder that should be opened when that item
is clicked from the combobox. This way, all that needs to be done is
when the user clicks the relevant item in the combobox, excel simply
follows the hyperlink which should then open whatever its pointing to.
It also makes it quick and easy to maintain since when adding a new
item to the list, all i have to do is type the text i want in the
combobox and then in the same cell add a hyperlink to the file it
should open. I am pretty sure this is possible. for example purposes
ill put the combobox on "sheet1" and the list of items that need to go
in it on "sheet2".

i cant use validation box because i need the dropdown to be visible at
all times since this is going to be used by people that dont know
anything about excel and so wouldnt know the list was there without the
arrow being visible all the time.

so can anyone explain exactly how to do this as im not a complete
beginner (i can get the activex combobox onto the form and open the vb
editor) but have no idea how to write the code to do this or where to
put it (i assume it all goes into the combobox click event).

thanks


---
Message posted from http://www.ExcelForum.com/

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to open a 82 KB XLSM file due to "Too many different cellformats" & "Converter failed to open the file." errors. Phillip Pi Excel Discussion (Misc queries) 0 April 23rd 09 08:53 PM
Unable to open a 82 KB XLSM file due to "Too many different cellformats" & "Converter failed to open the file." errors. Phillip Pi Setting up and Configuration of Excel 0 April 23rd 09 08:53 PM
In Excel - Use Windows Explorer instead of File Open to open file KymY Excel Discussion (Misc queries) 1 August 5th 06 09:59 PM
reading from another file and pasting to current file, "combobox" Darius New Users to Excel 1 September 26th 05 07:13 AM
Combobox Change Event when file is saved as E.Anderegg Excel Programming 1 October 1st 03 05:03 PM


All times are GMT +1. The time now is 10:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"