Results 1 to 10 of 10

For each non-empty cell.

Threaded View

  1. #1
    Forum Contributor
    Join Date
    03-04-2008
    Location
    Ohio
    MS-Off Ver
    Office 2010
    Posts
    208

    For each non-empty cell.

    Can someone help me write a simple loop? I'm writing a macro that will repeat a set of calculations for a range of data (B9:AY17). The data will not always be the same size. It may be from B9:W17, or it may be from B9:AA17.

    For example, if B9 is not empty, I want to copy B9:B17 to another sheet. Then I want to repeat this process for C9, copying C9:C17 to the second sheet, repeat for D9, and so on.

    Ideally, the first empty cell would stop the macro. So if H9 is empty, the macro would end.

    TIA for any help you can offer.

    Best regards,

    -gshock
    Last edited by gshock; 08-11-2008 at 07:40 PM.

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