?
Solved

Clear cells in range

Posted on 2013-10-25
2
Medium Priority
?
236 Views
Last Modified: 2013-10-25
Folks,
What I am wanting to do is for the range D7:E15 is clear the contents and formatting. Below did not work:
Dim lRowLoop As Long
For lRowLoop = 7 To 15
    Range(lRowLoop).Interior.Color = vbWhite
Next

Open in new window

0
Comment
Question by:Frank Freese
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 34

Accepted Solution

by:
Norie earned 2000 total points
ID: 39600832
Try this.
Range("D7:E15").Clear

Open in new window

0
 

Author Closing Comment

by:Frank Freese
ID: 39600913
That was too easy - but thanks a lot. I really appreciate it!
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

764 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