+ Reply to Thread
Results 1 to 6 of 6

Macro Edit

  1. #1
    Forum Contributor
    Join Date
    04-18-2011
    Location
    Jeddah
    MS-Off Ver
    Excel 2007
    Posts
    362

    Question Macro Edit

    Is there a way please to edit the below Macro1 in order to run the same below commands but in any selected desired row number and not necessarily as listed below row 29 every time and still fill the listed below cells with the same shown data running the same Macro1?

    Sub Macro1()
    '
    ' Macro1 Macro
    '

    '
    ActiveCell.FormulaR1C1 = "1111"
    Range("C29").Select
    ActiveCell.FormulaR1C1 = "AAA"
    Range("D29").Select
    ActiveCell.FormulaR1C1 = "BBB"
    Range("H29").Select
    ActiveCell.FormulaR1C1 = "1:35:00 AM"
    Range("B30").Select
    End Sub
    Last edited by Khaldon; 04-22-2011 at 03:48 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Macro Edit

    Hi Khaldon

    you could use offset
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Contributor
    Join Date
    04-18-2011
    Location
    Jeddah
    MS-Off Ver
    Excel 2007
    Posts
    362

    Re: Macro Edit

    Hi Pick

    Thank you for your fine reply.
    I created many macros that way, is there a way please to sort them by name from the Developer tap (Excel 2007), Macros, at Macro Name window?

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Macro Edit

    Hi Khaldon
    no idea what you mean? can you expand ?

  5. #5
    Forum Contributor
    Join Date
    04-18-2011
    Location
    Jeddah
    MS-Off Ver
    Excel 2007
    Posts
    362

    Re: Macro Edit

    If you please open any Excel sheet, select Developer tape from the top ribbon and then view Macros (bottom second to the left), there are the list of Macros that been created by the user if any.
    My enquiry is there a way that I can sort my list of created Macros by Macro name at that window?

  6. #6
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Macro Edit

    Hi Khaldon,
    No way that i know of.. they stay in Alphabetical order

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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