+ Reply to Thread
Results 1 to 5 of 5

Last Column count based on find.row count

  1. #1
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Last Column count based on find.row count

    I'm not sure how to colour the line but the "LastNumba" line of code is causing me some grief. I've tried to replicate the Rownumba format but I can't quite get it right. Can anyone help me work out how to find the last cell with a value in it using the row found in row number, and then allow me to use it as ColRef so I can paste a value into the result?

    Please Login or Register  to view this content.
    Last edited by Sc0tt1e; 03-23-2014 at 10:17 PM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Last Column count based on find.row count

    If you want the column number use the Column property.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Re: Last Column count based on find.row count

    Quote Originally Posted by Norie View Post
    If you want the column number use the Column property.
    Please Login or Register  to view this content.
    I tried that already. I get a run time error 1004, Application-Defined or Object-Defined error

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Last Column count based on find.row count

    Perhaps you should add Option Explicit at the top of the module.

    That would help you find any misspelt/undeclared variables, e.g. rownumber.

  5. #5
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Re: Last Column count based on find.row count

    I don't know what that does but I have added it, I have also spelt Rownumba correctly however I am still getting the same error message but on a different line now?

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Re: Last Column count based on find.row count

    Never mind I was being an Idjut, got it sorted at last

+ 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. [SOLVED] To find the count based on data and criteria.
    By raovv in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-11-2013, 02:35 AM
  2. [SOLVED] count strings based on dates if find duplicate consider it one
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-10-2012, 01:06 AM
  3. [SOLVED] Count Rows Based On User Input & Trigger Print Of Pages Out Of Count Result
    By wliang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2012, 02:45 AM
  4. function to find out count based on criteria.
    By arnab0711 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-30-2011, 06:45 AM
  5. How do i count numbers and letters to find a total count of all
    By Linda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-10-2005, 12:55 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