+ Reply to Thread
Results 1 to 2 of 2

Rowsource or any other value (date issue) + refer to other userform

  1. #1
    Forum Contributor
    Join Date
    10-07-2015
    Location
    cyprus
    MS-Off Ver
    Microsoft 365
    Posts
    191

    Rowsource or any other value (date issue) + refer to other userform

    in the attached file I have a "SEARCH" userform which actually filter the worksheets datas. It works quite good except two issues:

    1st problem = if I want to perform a search based on "B/L date", since the rowsource is actually the BL date already existing, I can not perform search on any date I want. How can I code it to be able to pick up an existing date or any date I want (provided formatted "dd-mmm-yy")

    2nd problem = this "search" userform can actually be called from the "CARGO2016" and from "PANDL" userforms clicking on the magnifying glass, however those two different userforms have the same field named "REF",
    in the filter sub of "SEARCH" userform, I want to refer to the REF field depending from which userform I performed the search...

    ex: I am in cargo2016 form, I click on the magnifying glass, and perform a search, the cargo2016.ref.value = r
    I am in PANDL form, I click on the magnifying glass, and perform a search, the pandl.ref.value = r

    herebelow the already existing code for this (not working)
    Please Login or Register  to view this content.
    the code as above actually opens both of the userform........

    can someone help?
    Attached Files Attached Files
    Last edited by mariec_06; 06-13-2016 at 05:54 AM.

  2. #2
    Registered User
    Join Date
    12-03-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010, 2013, 2016
    Posts
    41

    Re: Rowsource or any other value (date issue) + refer to other userform

    Maybe you should try doing something like this:

    UserForm1 Code Module:
    Please Login or Register  to view this content.
    UserForm 2 Code Module:
    Please Login or Register  to view this content.
    Regular Code Module:
    Please Login or Register  to view this content.
    Using Excel 2010, 2013 & 2016 | Windows 7 | 64 Bit

+ 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. Using Array as Rowsource in Userform
    By jwolfenstein in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-05-2016, 01:02 PM
  2. [SOLVED] Userform RowSource
    By plans in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-12-2015, 11:46 AM
  3. [SOLVED] Userform and Rowsource
    By saban1974 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-06-2014, 12:44 PM
  4. [SOLVED] VBA Userform combobox rowsource and folder value help
    By ds16 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-27-2012, 03:03 PM
  5. UserForm/ RowSource (using combo boxes)
    By Squirrel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-31-2011, 05:23 PM
  6. ???Help??? Userform.Listbox.rowsource = ???
    By Steve Sparti in forum Excel General
    Replies: 0
    Last Post: 03-01-2006, 05:50 PM
  7. UserForm ComboBox RowSource Question
    By Minitman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2005, 03:10 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