+ Reply to Thread
Results 1 to 9 of 9

EXCEL MarcoVBA Navigation Menu

  1. #1
    Registered User
    Join Date
    01-21-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    14

    EXCEL MarcoVBA Navigation Menu

    Hi there pro coders,

    First, kindly refer to the attached image and lets name it "Navigation menu Bar".
    All I want to know is how to do this. I took it from a macro enable excel file.
    When I open the said file, a log-in form will pop-up. But lets jud disregard that.

    All I want to learn from you is that, When I open a specific excel file, the
    "Navigation Menu Bar" Will pop-up and then if I click any of the button, it will
    proceed to the assigned worksheet.

    I also want to learn how to add button inside the excel file where in if I click, it
    will return to "Navigation Menu Bar"

    Thank You and More Power
    Attached Images Attached Images
    Last edited by jamzsaludares; 09-17-2014 at 10:00 PM.

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

    re: EXCEL MarcoVBA Navigation Menu

    Hi Jamz,

    We need to see the code - can you post a sample workbook? (Go to Advanced and click on the paper clip)
    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

  3. #3
    Registered User
    Join Date
    01-21-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    14

    re: EXCEL MarcoVBA Navigation Menu

    Hi there,

    sorry for the delay.
    Here is the situation.

    1. I have file name lets say "00 FS.xlsm"
    2. Inside of "00 FS.xlsm" is a Form "NavigationMenu" refering to above image that I attached.

    I was after the "NavigationMenu" to pop-up upon opening the workbook "00 FS.xlsm"

    Here is what i did.
    Please Login or Register  to view this content.
    I pasted it in Sheet1
    but nothing happens
    Last edited by Leith Ross; 09-22-2014 at 01:35 AM. Reason: Added Code Tags

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    re: EXCEL MarcoVBA Navigation Menu

    Hi, jamzsaludares,

    please wrap the procedure with code-tags as requested in Forum Rule #3.

    Code has to go into ThisWorkbook in order for the event to get triggered.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  5. #5
    Registered User
    Join Date
    01-21-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: EXCEL MarcoVBA Navigation Menu

    Quote Originally Posted by HaHoBe View Post
    Hi, jamzsaludares,

    please wrap the procedure with code-tags as requested in Forum Rule #3.

    Code has to go into ThisWorkbook in order for the event to get triggered.

    Ciao,
    Holger
    Hi there, Its aready functional. Thank You.
    Can I ask again another question?

    1. My "NavigationMenu" FORM is inside the "00 FS.xlsm"
    2. I Copied the "NavigationMenu" inside the "01 Sales.xlsm" so that I can recall it later (If im not wrong)
    3. Inside the "NavigationMenu" are buttons:

    (a.) FinancialStatement workbooks.open ("D:\Documents\00 FS.xlsm")
    (b) Sales workbooks.open("D:\Documents\01 Sales.xlsm")
    Not here's what happen.
    1. Click Button to open "01 Sales.xlsm" - successful
    2. I Open the NavigationMenu - Click 00 FS.xlsm - successful BUT it reopen the file.

    This some kind of an IF function.
    1. IF "00 FS.xlsm" is not yet open = Open the File
    2. IF "00 FS.xlsm" is already open = Just take me to "00 FS.xlsm" , do not re-open

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: EXCEL MarcoVBA Navigation Menu

    Hi, jamzsaludares,

    loop through the workbooks in the instance of Excel and set the object to the workbook else activate the workbook.

    I assumed the workbook to be stored in the same folder as the workbook that is starting the routine:
    Please Login or Register  to view this content.
    Ciao,
    Holger

  7. #7
    Registered User
    Join Date
    01-21-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: EXCEL MarcoVBA Navigation Menu

    Quote Originally Posted by HaHoBe View Post
    Hi, jamzsaludares,

    loop through the workbooks in the instance of Excel and set the object to the workbook else activate the workbook.

    I assumed the workbook to be stored in the same folder as the workbook that is starting the routine:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Hey There,

    Working like charm. Thank a lot, I really appreciate it.
    One last thing and im done. Here is what I did.

    I did a tweak on my excel. To make excel not visible and only
    the NavigationMenu form shall appear. It works fine, but I can't
    get rid of this one. See attached image.


    Whenever I open excel "00 FS.xlsm" this one will pop-up. when I
    click continue, It will now proceed to NavigationMenu form.


    Private Sub CommandButton1_Click()
    Application.Visible = True
    Me.Hide
    End Sub


    Thank You
    Attached Images Attached Images
    Last edited by jamzsaludares; 09-22-2014 at 12:31 PM.

  8. #8
    Registered User
    Join Date
    01-21-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: EXCEL MarcoVBA Navigation Menu

    Up for this one last question of mine. :D
    Thank You for everyone who helped me a lot.
    Credits to all of you. This project gave me
    an incentive to my work.

    I will make a tutorial on this one, and hoping
    that I can also help someone who need this,
    of course your name will be included as my
    mentors.

  9. #9
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: EXCEL MarcoVBA Navigation Menu

    Hi, jamzsaludares,

    you certainly may believe the last question to be part of the original question but I´m afraid that it has nothing to do with that question.

    Maybe try
    Please Login or Register  to view this content.
    Ciao,
    Holger

+ 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. Add a New menu on Mouse right click for workbook Navigation
    By ashish koul in forum Tips and Tutorials
    Replies: 1
    Last Post: 12-15-2012, 10:51 PM
  2. [Solved] Menu Bar/Navigation
    By texanjohn in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-20-2009, 01:59 PM
  3. Excel Navigation
    By penzer in forum Excel General
    Replies: 7
    Last Post: 03-10-2008, 02:03 PM
  4. Navigation in Excel
    By Geor in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-08-2005, 05:05 PM
  5. Excel Navigation
    By spartanmba in forum Excel General
    Replies: 1
    Last Post: 02-18-2005, 10:06 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