+ Reply to Thread
Results 1 to 6 of 6

Find Non Blank Cell and run Macro

  1. #1
    Registered User
    Join Date
    05-21-2008
    Location
    London
    MS-Off Ver
    2007
    Posts
    66

    Smile Find Non Blank Cell and run Macro

    I am try to write a bit of code which will find the non blank cells in column H (Range H4:H24) and when it finds a non blank cell make column C in that row the active cell and then run a macro. Once the macro as been run i would like it to look for the next non blank cell.

    At this moment I do not have any idea where to start with this so any help would be appreciated.

    Thanks Vetequk
    Last edited by Vetequk; 01-31-2010 at 04:50 PM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Find Non Blank Cell and run Macro

    What is the other macro supposed to do? You don't have to activate cells for other code or actions to be done.

    Basic code framework:
    Please Login or Register  to view this content.
    In order to get a more precise answer, upload a sample workbook and provide more details about what is expected.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    05-21-2008
    Location
    London
    MS-Off Ver
    2007
    Posts
    66

    Re: Find Non Blank Cell and run Macro

    All the macro does is take certain information off a excel spread sheet and copies it to a new sheet and gives the new sheet a name. the trouble is some of these sheets have over 100 names. I have attached a test sheet I was working with.

    Thanks for your help

    Vetequk
    Attached Files Attached Files

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Find Non Blank Cell and run Macro

    You can use Specialcells
    Please Login or Register  to view this content.
    Just seen your example workbook so I will take a look
    Last edited by royUK; 01-24-2010 at 05:55 AM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Find Non Blank Cell and run Macro

    Your existing code has way too many unnecessary actions - Selecting, Activating etc.Maybe if you could state exactly what the code is required to do,provide a before & after example, the code could be improved

  6. #6
    Registered User
    Join Date
    05-21-2008
    Location
    London
    MS-Off Ver
    2007
    Posts
    66

    Re: Find Non Blank Cell and run Macro

    I am looking for the code to run through the test spread sheet, extracting only the rows with information in the comments column. Then create a separate sheet with only certain information from that row.

    In the comments section it may say visit this client on the 3rd February. the code will create a sheet with the clients details and the sheet would be issued to one of our operatives to action.

    Hope that makes sense.

    Thanks
    Vetequk

+ 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