+ Reply to Thread
Results 1 to 5 of 5

perform Macro based on cell value

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    perform Macro based on cell value

    Hello there, I have a worksheet with 20,000 rows.

    I column A the value is either 0 or 1

    For all the rows with a value of 1 - I would like a macro to paste the following formula into Column "R" of the corresponding row - for each row that has a value of 1 in column A.
    Code:

    Please Login or Register  to view this content.
    Please advise if this is possible?

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: perform Macro based on cell value

    Hi cmb80, the following is not tested but give it a try
    Please Login or Register  to view this content.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  3. #3
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Re: perform Macro based on cell value

    Will give it a go cheers and let you know

  4. #4
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Re: perform Macro based on cell value

    Ho Mordred, I've inserted and ran the macro which took a few minutes to complete but I can;t see that its done anything - definitely not what it was intended to do anyway

  5. #5
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: perform Macro based on cell value

    Sorry cmb80, I made a slight error and hopefully the following recitfies it
    Please Login or Register  to view this content.

+ 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