+ Reply to Thread
Results 1 to 5 of 5

Run macro is cell range is not blank

  1. #1
    Forum Contributor
    Join Date
    12-14-2017
    Location
    birmingham, england
    MS-Off Ver
    2016
    Posts
    102

    Run macro is cell range is not blank

    I have a button that triggers a set of macros, one calling the next one at the end of each one. I couldnt figure out how to only trigger the particulary one if it wasnt blank so i made a new sub and pointed the previous one to this instead, only calling the next if this range isnt blank, but im getting a type mismatch error.

    Please Login or Register  to view this content.
    I was testing this range so that i could check if the code worked at all because i actually want it to only run if the ranges
    B5:F12 B16:F25 B29:F31 B35:F38 B43:F53 B58:F69 on the sheet "STOCK" contain any values. So if any of the cells in them ranges have something in run the macro.

  2. #2
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Run macro is cell range is not blank

    Hi,
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-14-2017
    Location
    birmingham, england
    MS-Off Ver
    2016
    Posts
    102

    Re: Run macro is cell range is not blank

    Quote Originally Posted by dotchiejack View Post
    Hi,
    Please Login or Register  to view this content.
    Christ you guys are good!

    Works perfectly, although you knew that because its pretty simple to you! haha

    By the way, knowing things like this, was it something you studied at college, or are you self taught or have you done online courses.

    Or is it a mix of all of the above?

  4. #4
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Run macro is cell range is not blank

    Hi, glad to help.
    self taught and courses from my employer.
    Have a nice day.

  5. #5
    Forum Contributor
    Join Date
    12-14-2017
    Location
    birmingham, england
    MS-Off Ver
    2016
    Posts
    102

    Re: Run macro is cell range is not blank

    Courses from your employer?

    The reason i asked is that my company has said that whatever courses i want to do, theyd pay for, so i was just going to use things like Udemy etc.

    Last question. Was yours for a qualification, or was it from sites like Udemy, thats just an online course?

    Thanks again!

+ 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. VBA macro to copy last non blank cell on a certain range that has formula
    By danwoltrs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2016, 03:58 PM
  2. [SOLVED] VBA Macro to Rename Sheets to Range Contents unless Cell is Blank
    By unit285 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-11-2015, 02:57 PM
  3. [SOLVED] Macro to paste value into first Blank Cell in a range of Cells
    By FranktheBank in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-27-2015, 05:15 PM
  4. Macro to populate a range of blank cells from a base cell
    By eddie.lee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2015, 05:08 AM
  5. [SOLVED] Macro Delete Contents in 23rd corresponding cell if the cell in range is a non-blank cell
    By murtaza.khan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-04-2014, 01:11 AM
  6. formula/macro to colour blank cell in a range
    By EAMOG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2010, 04:17 PM
  7. Macro to select range based on cell not being blank
    By neb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-20-2005, 01:04 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