+ Reply to Thread
Results 1 to 3 of 3

Automating Macro's

  1. #1
    Registered User
    Join Date
    09-06-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    12

    Automating Macro's

    Hi I wonder if anyone can help me out. My macro's use to run automatically based on a change to cell H6, is there any way to target the whole sheet or more than one cell to automate the macro's as the sheet is continually changing and more than one cell is affected by the macro's.

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Value = "$H$6" Then
    Buy
    Sell_Number
    Going_Long
    Going_Short_Premium
    PlayIt
    Long_Discount
    Buy_Value
    Sell_Value
    testSound
    Resistance
    Support
    End If
    End Sub

    Thanks

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Automating Macro's

    I'm not sure as you have posted it the macro would work, you would normally need:
    Please Login or Register  to view this content.
    instead of:
    Please Login or Register  to view this content.
    but anyway, if you get rid of that and change it to:
    Please Login or Register  to view this content.
    where A1:B100 is the range of cells you want the macro to run for, that shoudl work.

  3. #3
    Forum Moderator Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Automating Macro's

    In your prenious thread i was warned you to use code tags around your code. You just choose to ignore me. SO


    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    ([I]This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)[/I]
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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. Automating an existing macro
    By BigMcBen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-02-2011, 12:27 PM
  2. automating a macro
    By kornnut in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-11-2010, 02:03 AM
  3. Automating a macro
    By Marcus Gee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2007, 06:43 PM
  4. automating a macro to increment row
    By Plusone in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-16-2007, 08:11 AM
  5. automating macro
    By chris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2005, 01: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