+ Reply to Thread
Results 1 to 3 of 3

macro problem, applying to cell one after another

  1. #1
    Registered User
    Join Date
    07-02-2010
    Location
    NZ
    MS-Off Ver
    Excel 2007
    Posts
    2

    macro problem, applying to cell one after another

    Hi,

    Basically I've got this code:
    Please Login or Register  to view this content.
    Which calls another macro if the cell in D has a value in it, how do I get this code to carry on in sequence for say 100 cells (or any number I specify).

    Thanks
    Last edited by Paul; 07-02-2010 at 09:56 PM. Reason: Added code tag for user, please do so yourself in the future.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: macro problem, applying to cell one after another

    This is one way.
    Selecting cells causes complications, so this only Selects if necessary. I suspect that the macro breakeven could be sped up by removing the selection.
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    07-02-2010
    Location
    NZ
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: macro problem, applying to cell one after another

    Thanks it worked I just had change your line to Cells(i,4).Select to Cells(i,15).Select as it selects a different cell, should have pointed that out though. My shoddy programming it's my first macro but its working.

+ 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