+ Reply to Thread
Results 1 to 3 of 3

How to create Macros That are easily accessible for use?

  1. #1
    Forum Contributor
    Join Date
    03-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    491

    How to create Macros That are easily accessible for use?

    Hello,

    My question is regarding the saving , use and transfer of Macros.

    I'm new to VBA and my problem of understanding the storage of Macros has been preventing me from excelling in VBA. (Get it!!! EXCEL ing hahaha)/Sorry...bad joke.



    I've created a macro that automatically inserts a table into data that is exported into Excel. -In fact a previous member has assisted with coding that for me; I will attach it to this post.
    (I'm still confused on the aspect of the code that alters the range of the data...but I'll muscle through that on my own and try to figure it out.)

    So the Macro he wrote (Or should I be saying module???) is Set only for this data? I want it to apply to any data set I enter in excel but find I would always have to click on macros, module, blah blah blah.

    Like if I want to send someone this code...do they have to save it in a work book or something; so when they put data into excel, they can just push a button to insert the table?
    keep in mind the data might have the same amount of rows(which was the topic of my previous post)

    If they have several excel files open and want to apply my macro to a specific data set will it automatically add the cool buttons to their specific sheet and stuff?

    What I want to accomplish is to have the code enabled on a blank spread sheet with the create table buttons there. And when some one exports the data to excel, its essentially being imported into a blank spread sheet with the buttons to the right which will allow the user to convert the data into a table and back.



    Please Let me know if there is further clarification needed. Thank you so much in advance for helping me with my post.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Ontario Canada
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: How to create Macros That are easily accessible for use?

    The way I usually like to do this is by inserting a button like you said.
    Go to the developer ribbon, insert, button.
    When you draw the button on the sheet, it will ask you which macro you want to assign to it.
    Or you could right click on the button and click assign macro.
    Put the button on the worksheet that you want it to apply to so that it is always the active workbook/worksheet when you it runs the code.

    Another way is to assign a hot key to the macro.
    Again in the Developer tab, press macros, then in the list, find your macro.
    Then click option.
    And you can assign a hot key to the macro.

    As for distributing it, is sending them a copy of the workbook an option?
    Alternatively, you could have a shared drive and both use read only copies and save the final work on your local desktop?

  3. #3
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: How to create Macros That are easily accessible for use?

    I would create a personal.xlsb. See here: http://office.microsoft.com/en-us/ex...102174076.aspx

    Let me know if it doesn't make sense.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

+ 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. Replies: 3
    Last Post: 06-27-2012, 02:25 PM
  2. Replies: 2
    Last Post: 11-08-2009, 04:47 AM
  3. How to easily create the chart
    By SiuPing in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-25-2008, 05:10 AM
  4. Create DLL in Visual Studio 2005 accessible by Excel 2002
    By Steve in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-06-2006, 04:05 PM
  5. [SOLVED] Excel 2003 Macros Not Accessible
    By Darrell in forum Excel General
    Replies: 3
    Last Post: 01-18-2005, 03:06 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