Solved

Checking to see if range is blank

Posted on 2014-03-17
3
146 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
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…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now