+ Reply to Thread
Results 1 to 3 of 3

+OFFSET and COUNTA in VBA

  1. #1
    Registered User
    Join Date
    06-18-2012
    Location
    South Yorkshire
    MS-Off Ver
    Excel 2007
    Posts
    10

    +OFFSET and COUNTA in VBA

    Hi,

    I have been using some VBA code to define and name ranges when a workbook is opened, but I've come to a dead end with one of the Dynamic Lists, just wandering if the following line could be converted to "VBA"?
    It refers to a Dynamic list called "VendorListDynamic", with sheets called "vendor" and "partslist".

    Please Login or Register  to view this content.
    and this is an example of the other code that I am using to name the ranges, this one defines a range and names is "suppliercostslist", using the Sheet "VendorInCosts".

    Please Login or Register  to view this content.
    thanks for any help

    Graham

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: +OFFSET and COUNTA in VBA

    Hi Baphony
    First comment : avoid using .Activate and .Select as it slows down your code. Most of the time you don't need to use it.

    Here's an example, if I understood well :
    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Registered User
    Join Date
    06-18-2012
    Location
    South Yorkshire
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: +OFFSET and COUNTA in VBA

    Thank you very much GC Excel,

    It worked!!!!!!! I'd been trying a couple of weeks to work it out, so thank you and - also want to thank you for the information about the Activate and Select statements, that has saved me extra lines of code

    Graham

+ 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. Data validation, IF, OFFSET & COUNTA
    By alfgrey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2013, 08:27 PM
  2. [SOLVED] Using OFFSET and/or COUNTA within SUMPRODUCT Function
    By maacmaac in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-21-2012, 03:51 AM
  3. OFFSET/COUNTA Function and Charts
    By Dgreiner in forum Excel General
    Replies: 3
    Last Post: 03-11-2012, 02:26 PM
  4. Countif, Count, Offset, Counta and Charts
    By riyo91 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-29-2010, 06:46 AM
  5. OFFSET/COUNTA merged cells
    By dborchardt in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-14-2006, 08:03 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