+ Reply to Thread
Results 1 to 2 of 2

Automatically select filled cells range in textbox

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    Zwaagwesteinde, Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    4

    Post Automatically select filled cells range in textbox

    Hey guys,

    I've a small problem on my hands here. I run a small business and with a few of my dealers i've set up a system in Excel which allows me to scan the barcodes of the necessary items and make an XML-file with all necessary information which i can easily send to my dealers systems.

    It's very helpful and allows me to do my purchases faster. Lately though I've been thinking of ways making the system even more easier.

    Too bad my VB-skills have become a little bit rusty over time...

    I've set up a textboxmenu where you have to put in the range of cells you want to be incorporated into the XML-file, just to make it easy i've put a static range of A3:D10 in the textbox. So i can always change D10 to D62 etc. Nowadays its been annoying me slightly because you always have to look up how far the range is, else you'll miss items in the xml-file or have empty orderlines. Here is the code of the original textbox:

    Please Login or Register  to view this content.
    What I want is that the range in the textbox isn't static anymore but dynamic, depending on the amount of items i want to add to the XML-file (every row is one itemline). So the range in the textbox is the actual range and only is there for 'checking' purposes.

    This is what i've come up with so far.

    Please Login or Register  to view this content.
    Now the textbox eventually only says 'selectrange'.. I've tried with " & Selectrange & " and all different kinds and couldn't find what I really wanted on other forums. At one time there stood '7' but that is not what im looking for eather :P.
    i know the Selectrange 'kindof' is correct but i'm not sure.

    If anyone could help me out it would be great!!

  2. #2
    Registered User
    Join Date
    03-21-2013
    Location
    Zwaagwesteinde, Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Automatically select filled cells range in textbox

    It also could be that the selectrange should be outside the RangeTwo and be linked later...

+ 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] automatically fill cells because other cells have been filled - SEE OPENING POST
    By tlacloche in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-02-2013, 10:38 AM
  2. [SOLVED] Cells automatically filled
    By Bluesound in forum Excel General
    Replies: 3
    Last Post: 11-25-2012, 04:15 PM
  3. Replies: 7
    Last Post: 11-09-2011, 11:42 AM
  4. combo box select cells filled auto
    By corchox in forum Excel General
    Replies: 0
    Last Post: 12-22-2010, 02:42 AM
  5. select a textbox automatically
    By ben_sumner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-08-2007, 10:01 PM

Tags for this Thread

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