+ Reply to Thread
Results 1 to 8 of 8

Textbox populated by criteria of columns data

  1. #1
    Registered User
    Join Date
    07-03-2013
    Location
    Milan
    MS-Off Ver
    Excel 2010
    Posts
    24

    Textbox populated by criteria of columns data

    Dear all,
    i need simply a code to get a count of each element of column "D" (how many of "SA", and "MI" and "PA" ecc...), each result type should appear respectively in each testbox.
    It could be simple, but i'm beginner of vb excel..so i kindly ask your help..
    Hopin

    Thank you in advance
    Salvatore
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-04-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Textbox populated by criteria of columns data

    Hi savyback,
    Why don't you use a pivot table? Do you need the VBA code? If not, please see attached...

    Cheers,

    temp1.xlsm

  3. #3
    Registered User
    Join Date
    07-03-2013
    Location
    Milan
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Textbox populated by criteria of columns data

    Hi Cupitron, unfortunately i need code for a form. I know that it's more simply getting it with pivot table, but the attached example is a part of a big project (with other data) entirely developed with vba/form.
    Moreover it could be fantastic getting a pivot table on a form!
    Greeting from Milan (I) !!
    & Thank's in advance!

  4. #4
    Registered User
    Join Date
    07-04-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Textbox populated by criteria of columns data

    Quote Originally Posted by savyback View Post
    Hi Cupitron, unfortunately i need code for a form. I know that it's more simply getting it with pivot table, but the attached example is a part of a big project (with other data) entirely developed with vba/form.
    Moreover it could be fantastic getting a pivot table on a form!
    Greeting from Milan (I) !!
    & Thank's in advance!
    Hi savyback,
    Create a new module in VBProject and insert the following code.
    I also removed your code that calls the UserForm under "Questa_cartella_di_lavoro" just so this is all in one module, but you can put it back there if you wish. You must comment out that code first before attempting to run this, otherwise you will get an error.

    I also added a button on the Figlio1 sheet to show the form.

    Please Login or Register  to view this content.
    The number of Provincia Abbreviations is dynamic in the search but it will not generate new ComboBoxes on the UserForm for additional provincia...
    In case you can't get the code to work, I've upload my edited version of the file.

    I hope this helps.

    Cheers,
    -Dan
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-03-2013
    Location
    Milan
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Textbox populated by criteria of columns data

    Hi Dan, thank you very very much you gave me the right solution!!
    You are very helpful!
    I'll keep this code carefully for future developments..

    Ciao
    Salvatore

  6. #6
    Registered User
    Join Date
    07-04-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Textbox populated by criteria of columns data

    Not a problem!
    I'm glad that I could help.

    Cheers.

  7. #7
    Registered User
    Join Date
    07-03-2013
    Location
    Milan
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Textbox populated by criteria of columns data

    Hi Dan,
    please if you can, i have a problem.. Enclosed you find a simply xls file has a field to search customer.
    I should get the customer's name also by inserting a part of the name, actually the system requires that i insert the totally and exactly customer's name.
    Is there a way to modify or add a part of code to get a solution?
    Thank you in advance for your usually courtesy..
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-04-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Textbox populated by criteria of columns data

    Quote Originally Posted by savyback View Post
    Hi Dan,
    please if you can, i have a problem.. Enclosed you find a simply xls file has a field to search customer.
    I should get the customer's name also by inserting a part of the name, actually the system requires that i insert the totally and exactly customer's name.
    Is there a way to modify or add a part of code to get a solution?
    Thank you in advance for your usually courtesy..
    Hi Savyback,

    Please post this in a separate thread, since this thread has already been "Solved".
    I did not look at this until now because you labelled it "Solved".

    Thanks,

+ 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] Textbox to be populated with data from another worksheet
    By saji in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2013, 07:02 AM
  2. 3 columns populated with import data
    By evohans in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-06-2013, 02:30 PM
  3. Excel 2003: Userform textbox populated by table filtered results
    By SHU_STU_0609 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2013, 12:53 AM
  4. Replies: 17
    Last Post: 01-12-2013, 11:31 AM
  5. Textbox with multiple columns and rows using data from another sheet.
    By ali84pk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-17-2011, 10:29 AM

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