+ Reply to Thread
Results 1 to 2 of 2

Macro step to go directly to a tab on the ribbon

  1. #1
    Registered User
    Join Date
    02-11-2017
    Location
    Mid-Atlantic
    MS-Off Ver
    2007
    Posts
    6

    Macro step to go directly to a tab on the ribbon

    I would like to have a simple macro that would:
    - go to the "Data" tab on the ribbon
    - display the choices under the "From Other Sources" icon (in the "Get External Data" group)
    - select "From Microsoft Query", in said choices. At this point, a dialog box should open up for the user to locate a file, and the macro can stop.

    I have tried to record the macro as I perform the actions, but for some reason the steps are not registering. When I look at the macro's content, none of the steps are recorded. I did enable to workbook for macros. Is there an obvious step I overlooked?

    Thank you for your help.
    Last edited by philef; 03-15-2017 at 07:42 AM.

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Macro step to go directly to a tab on the ribbon

    Ribbon actions are not recorded.

    Start recording again, but this time, pick a file and follow through. Once the data loads, stop the macro. Go to the VBE and make changes to the code to ask for file.

    Something like this. (Off the top of my head.)
    Please Login or Register  to view this content.
    Then, replace the literal filename with FN.
    David
    (*) Reputation points appreciated.

+ 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. Simple Macro question
    By Mikemcf31 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-17-2013, 01:26 PM
  2. Problem running simple macro in Excel 2010
    By SuzieW in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2012, 03:44 AM
  3. Simple Macro Question
    By sarahwilson1000 in forum Excel General
    Replies: 1
    Last Post: 06-23-2011, 04:51 PM
  4. a simple macro question
    By lotaguts in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-23-2007, 11:11 AM
  5. A Simple(?) Macro Question
    By DaveJones39 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-24-2006, 09:50 PM
  6. Macro question - I'm sure it's simple...
    By chrisgoulden in forum Excel General
    Replies: 3
    Last Post: 02-23-2006, 12:01 PM
  7. Simple Macro Question
    By Jason R in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-26-2005, 05:19 PM

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