+ Reply to Thread
Results 1 to 14 of 14

Dumb question about macro Over macro

  1. #1
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    Unhappy Dumb question about macro Over macro

    Hi All,

    As i said in Title, it might be a dumb question..

    Can Macro make it work another macro while recording? (ye's it sound weird)

    Let say I already have 2 Macros, ( Macro-1 and Macro-2)
    Macro-1 Sort the data 'Most to Least', and Macro-2 Sort the Data 'Least to Most' (each one,with it's button)
    and let say i want to record another macro, called Macro-3

    Then the dumb question:
    with this new macro-3, (while recording) can make it work Macro-1, or Macro-2
    (and of course) Add the new function recording?

    Is there a way? I already tried and didn't work,


    Sorry

    Thank you!!



    Best Regards

    David

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Dumb question about macro Over macro

    No you can't record a macro running other macros. But you can create one. Just type it in:

    Please Login or Register  to view this content.

    Regards, TMS
    Last edited by TMS; 07-02-2014 at 05:50 PM. Reason: Typo
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    Re: Dumb question about macro Over macro

    Hi Mr TMS,

    Wow, So i see is possible to do other thing.., Okay, let me see how to play wit it !!


    Thank you so much !!


    Best Regards

    David
    Last edited by david gonzalez; 07-02-2014 at 05:58 PM. Reason: compose

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Dumb question about macro Over macro

    You're welcome. Thanks for the rep.

  5. #5
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    Re: Dumb question about macro Over macro

    Hi Mr TMS,
    The New macro over macro It doesn't work for me

    I Added the New Macro, the way (i understood)..

    It's might because that each of the existing macro are located on different worksheet? it might be, right?

    The updateStat_A macro is for worksheet-1 and updateStat_B is in Worksheet 2..

    This is what i did :

    Please Login or Register  to view this content.
    So, after click the new Macro Button, it's just update the UpdateStat_B
    (BTW, New macro is located in Worksheet 2)

    Thank you !!!!!!!!!!!!!!!!!!!!!!!


    Best Regards


    David
    Last edited by david gonzalez; 07-02-2014 at 11:52 PM.

  6. #6
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    Re: Dumb question about macro Over macro

    Hi Friend !!

    I did something else (that i searched in the net) and didn't work too.

    Please Login or Register  to view this content.
    advice please??


    Best Regards

    David

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Dumb question about macro Over macro

    You should put all the subroutines in a standard module NOT in the worksheet modules. You can, if you must, have the subroutines in a sheet class module but then you would need to qualify them with the sheet Codename.

    Regards, TMS

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Dumb question about macro Over macro

    You can
    Please Login or Register  to view this content.
    Last edited by jindon; 07-03-2014 at 02:35 AM.

  9. #9
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    Re: Dumb question about macro Over macro

    Hi,

    Hi Mr TMS

    The subroutine are in standard module., What i mean on previous mail is that the "UpdateStat_A" button is located in sheet-1 The 'UpdateStat_B' button is located in sheet-2
    The Third Macro button i copied it in sheet-2

    Is getting difficult, because it won't work.

    Question : on Mr jindon code he mention the word ".codename & "

    Let me ask you, what is the code name?, isn't UpdateStat_A or B?

    the function of Both macro is just to click cell with formula value (to remember same row column)
    When new data is entered, i mean, both macro don't have special code.

    This is what i did

    Please Login or Register  to view this content.
    i receiving a error message :

    'Run-time error '438': Object doesn't support this property or method
    NOTE : I assign it button 5 and i'm not using nothing regarding Autosum.

    according to microsoft, this error is because :
    This behavior occurs if you attempt to create a button that displays the AutoSum symbol by assigning the number 39 to the button. However, Excel is unable to create a button with that number. Then, when you try to assign a macro to the non-existent button, you receive the error message described in the "Symptoms" section of this article.



    Thank you so much


    Best Regards

    David

  10. #10
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Dumb question about macro Over macro

    David

    Is the problem that the code in the macros isn't being executed on the correct worksheet(s)?


    PS That error has nothing do to with AutoSum, it's because UpdateStat_A is not a property or method of a worksheet.
    If posting code please use code tags, see here.

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Dumb question about macro Over macro

    Suggest you upload a sample workbook with the buttons and code you have.

    Regards, TMS

  12. #12
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    Smile Re: Dumb question about macro Over macro

    Hi, Norie and TMS!!

    " UpdateStat_A is not a property or method of a worksheet...." It seems i'm in trouble then .. lol

    Yes, better to upload the sample file.

    Please find attached from my personal cloud. ( is called like that, right?)
    (it was big, over 4mb, i had to shrink it to 1.8mb, and was still big for the forum )

    https://dl.dropboxusercontent.com/u/...FF1-TEST2.xlsm

    Thank you for response !!

    Best Regards

    David.
    Last edited by david gonzalez; 07-03-2014 at 01:50 PM. Reason: problem with attachment

  13. #13
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Dumb question about macro Over macro

    They are not in the worksheet module.
    Please Login or Register  to view this content.

  14. #14
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    Re: Dumb question about macro Over macro

    Hi Mr Jindon, Long time...

    I'm sorry, i lil thnig that i don't know yet (specially in VBA)
    But yes, Thank you, I'll find out how when a macro is in the worksheet or not.


    Again, Thank you so much !!




    Best Regards

    David

+ 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. Dumb question
    By kirkm in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-06-2006, 06:50 AM
  2. [SOLVED] dumb question
    By uw805 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-08-2006, 12:10 PM
  3. Very dumb question
    By gregorsamsa in forum Excel General
    Replies: 2
    Last Post: 03-23-2006, 11:20 AM
  4. Dumb question of the day.
    By DennisB in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-11-2005, 11:05 PM
  5. Dumb Question...
    By smoove in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-18-2005, 07:07 PM

Tags for this Thread

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