+ Reply to Thread
Results 1 to 6 of 6

Macro to Hyperlink Command Button to open Selected Folders From a List Box

  1. #1
    Forum Contributor
    Join Date
    06-20-2012
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    454

    Macro to Hyperlink Command Button to open Selected Folders From a List Box

    Hello,

    I need some help in the following scenario.

    I have Three Main Folders say X,Y,Z In "D" Drive and i want to

    1. Select the main Folder using Option button....say X

    2. Show the list of Subfolders in the above Selected Folder (i.e) X in a listbox.

    3. Hyperlink the path of the selected subfolder from the listbox to a command button.

    4. Click the command button to open the Selected subfolder

    I am using the below macro to get the path list

    Please Login or Register  to view this content.
    I am herewith attaching the sample file.

    Thanking you.

    Regards,
    Zaska
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-20-2012
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    454

    Re: Macro to Hyperlink Command Button to open Selected Folders From a List Box

    Hello,

    Can anyone please kindly help or give me instructions?

    Thank you.

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Macro to Hyperlink Command Button to open Selected Folders From a List Box

    Hi Zaska,

    I'll look at this tomorrow
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Forum Contributor
    Join Date
    06-20-2012
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    454

    Re: Macro to Hyperlink Command Button to open Selected Folders From a List Box

    Sir,

    I have almost finished basic work.. Just need help with small tweaks which i am not able to understand myself. I am attaching the sample herewith.

    Regards,
    Zaska
    Attached Files Attached Files

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Macro to Hyperlink Command Button to open Selected Folders From a List Box

    Hi Zaska,

    I haven't figured out anything yet - but, I deleted the macro assignments for the option buttons

  6. #6
    Forum Contributor
    Join Date
    06-20-2012
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    454

    Re: Macro to Hyperlink Command Button to open Selected Folders From a List Box

    Sir,

    Let me make it clear if i have not explained my point clearly as shown in the Learning Sheet attached in Post #4 .

    1. I have four different Folders in "D" Drive each categorized under different groups say Fruit,Food,Meat & Drink

    2. I have a macro which gets the path of Each Folder ( not files) from "D" Drive... say for example : "D:\Apple"

    3. I have inserted Four Option buttons to a particular Group and i have linked the option button to the list box which shows only the selected Group..For example..When i select the option Fruit then the list box displays only the Folders grouped under Fruit category.

    4. When i select Apple from the list box then the command button should be hyperlinked to the apple folder in "D" Drive. This is where i got stuck.

    to be more simple.

    Select a folder from list box then click the command button to open the selected folder.

    Thank you very much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] open a hyperlink by command button
    By grkchakri in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2014, 11:29 AM
  2. [SOLVED] Command button grayed out till option button selected
    By Jeff121 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2013, 11:00 AM
  3. Open a document from a Combo Box drop down list with a Command Button.
    By Ortz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2012, 02:34 PM
  4. Can A Custom Command Button Have A Macro AND Hyperlink Assigned To It
    By fdegree in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-28-2012, 07:43 PM
  5. [SOLVED] command button:Can i use a command button to open diffrrent sheets
    By Hellboy in forum Excel General
    Replies: 0
    Last Post: 11-03-2005, 11:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1