+ Reply to Thread
Results 1 to 2 of 2

Create a user button to record a formatting macro

  1. #1
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Create a user button to record a formatting macro

    Hi everyone,

    I have the following code which loops through all workbooks in a selected folder and applies formatting:

    Please Login or Register  to view this content.
    As you can see, I have everything except the actual formatting code ('Enter code to do Formatting work on all Workbooks). What I'm trying to do is have the user press a commandbutton in an existing userform which will automatically turn on the Macro Recorder so the user can applying the formatting changes, Save the new macro with a macro name already identified, and run that macro in the code listed above.

    I've never done such a thing before. Any ideas? Thanks!!

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Create a user button to record a formatting macro

    I've never tried anything like this before either. What would be wrong with the user formatting a cell, clicking a button to get the formatting for that cell and then applying it to a specified range? Why get the macro recorder involved at all?
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Create button on spreadsheet when clicked record date stamp in the next column
    By HBHB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2013, 06:52 PM
  2. [SOLVED] Macro to record User Name and Duration user accessed file.
    By bajdr47 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-27-2013, 04:14 PM
  3. Collect User Input Using VBA Form and Record Inputs in Macro Button
    By DD100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-28-2008, 03:29 PM
  4. Record Macro Stop Button
    By lwmweb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2007, 09:13 PM
  5. Record the time a user selects a macro
    By marcusmccown in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-22-2006, 10:31 PM
  6. Macro to record user name and date/time
    By Maddoktor in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-18-2005, 07:00 AM
  7. [SOLVED] Macro to record user name and date/time
    By Maddoktor in forum Excel General
    Replies: 0
    Last Post: 12-08-2005, 06:10 PM
  8. [SOLVED] Macro Record Stop Button
    By Patrick Simonds in forum Excel General
    Replies: 2
    Last Post: 07-31-2005, 02:05 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