Solved

Checking to see if range is blank

Posted on 2014-03-17
3
148 Views
Last Modified: 2014-03-17
Folks,
I need to check to see if in the range D7:D14 is blank to exit my sub. This did not work.
If Range("D7:D14").Value = "" Then
Exit Sub
End If

Open in new window

0
Comment
Question by:Frank Freese
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
duttcom earned 500 total points
ID: 39935660
You could try using the countA function -

If WorksheetFunction.CountA(Range("D7:D14")) = 0 Then
Exit Sub
End If
0
 

Author Comment

by:Frank Freese
ID: 39935673
Ok....that'll work. Thanks
0
 

Author Closing Comment

by:Frank Freese
ID: 39935674
thank you
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question