+ Reply to Thread
Results 1 to 2 of 2

don't calculate row using macro and move to next row if specified cell is empty

Hybrid View

  1. #1
    Registered User
    Join Date
    12-08-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    7

    don't calculate row using macro and move to next row if specified cell is empty

    The following macro does well at concatenating 2 constant values and the values in columns A and CF and places it in the CP field. What I need to know is is it possible to modify this code so if there is NOT a CF field cell value (that is it is blank) that the formula does not run and moves on to the next row? That is, the CP1 cell remains blank?

    Range("CP1:CP" & Cells(Rows.Count, "A").End(xlUp).Row).Formula = "=""Handler_x-""&A1&""_y-600_z-""&CF1&"".jpg"""

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: don't calculate row using macro and move to next row if specified cell is empty

    do you already have the looping part done?....check out IF statement and ISBLANK() function and the NOT function....
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

+ 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. Macro to Move data the the Next specific empty row
    By awagenhurst in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-03-2013, 02:19 PM
  2. macro to move to next row if formula in cell has nothing to calculate
    By fabrecass in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-06-2013, 10:34 AM
  3. Macro to move all values to left if the cell is empty
    By Blake 7 in forum Excel General
    Replies: 6
    Last Post: 05-05-2011, 06:28 AM
  4. Move to First Empty Cell
    By baribill in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-03-2010, 09:46 AM
  5. [SOLVED] macro- move down to empty cell & active worksheet
    By EducatingMom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-04-2006, 06:05 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