Advertisement

07.03.2008 at 02:26PM PDT, ID: 23538240
[x]
Attachment Details

How to find the last cell used in a certain column that has data in it (disregard formulas)

Asked by NetworkSetup in Microsoft Excel Spreadsheet Software

Tags: , ,

I'm a little stumped and would like some help.

Using VBA, how would I find the last cell used in a certain column that has data in it (disregarding formulas)?

Right now, I'm using this, but it's only letting me find the last one with anything in it (so since the column has a formula in it, it's giving me problems):


Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
Sub LastCellInColumn()
 
Dim Monthly As String
 
    Monthly = Range("'Monthly Totals'!B65536").End(xlUp).Value
    Range("'Invoice'!D12") = ("=" & Monthly)
   
 
End Sub
[+][-]07.03.2008 at 02:42PM PDT, ID: 21929456

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 02:46PM PDT, ID: 21929503

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 02:49PM PDT, ID: 21929531

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 03:35PM PDT, ID: 21929909

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 03:52PM PDT, ID: 21929986

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 03:56PM PDT, ID: 21929997

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: Microsoft, Office, Excel 2007
Sign Up Now!
Solution Provided By: zorvek
Participating Experts: 3
Solution Grade: A
 
 
[+][-]07.03.2008 at 04:01PM PDT, ID: 21930026

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628