+ Reply to Thread
Results 1 to 7 of 7

File save count issue

  1. #1
    Forum Contributor
    Join Date
    12-11-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    517

    File save count issue

    hello everyone, i have a column from a2:a2000
    i want to save a file that counts how many cells from a2:a2000 have data
    so basically, if A2:A197 have data, i want the file name to be "Dec (15) DB (197).xls
    i am using this code but its not counting for some reason

    Please Login or Register  to view this content.
    anyone have an idea why?
    thanks for your help

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: File save count issue-please help

    What are you using to populate lnglastrow?

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Contributor
    Join Date
    12-11-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    517

    Re: File save count issue-please help

    Quote Originally Posted by Domski View Post
    What are you using to populate lnglastrow?

    Dom
    Hi Dom, im using numbers

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: File save count issue-please help

    What I mean is lnglastrow is a variable name that will not contain a value until you give it one.

    This would normally be done like this:

    Please Login or Register  to view this content.
    You would need to change Sheet1 to the sheet name that contains your list.

    Dom

  5. #5
    Forum Contributor
    Join Date
    12-11-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    517

    Re: File save count issue-please help

    Quote Originally Posted by Domski View Post
    What I mean is lnglastrow is a variable name that will not contain a value until you give it one.

    This would normally be done like this:

    Please Login or Register  to view this content.
    You would need to change Sheet1 to the sheet name that contains your list.

    Dom
    Excellent, working great, you are really good my friend
    thanks again

  6. #6
    Forum Contributor
    Join Date
    12-11-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    517

    Re: File save count issue-please help

    Quote Originally Posted by Domski View Post
    What I mean is lnglastrow is a variable name that will not contain a value until you give it one.

    This would normally be done like this:

    Please Login or Register  to view this content.
    You would need to change Sheet1 to the sheet name that contains your list.

    Dom
    one problem Dom, i like the count to start from A2, not A1

  7. #7
    Forum Contributor
    Join Date
    12-11-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    517

    Re: File save count issue-please help

    nevermind, i figured it out Dom
    thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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