+ Reply to Thread
Results 1 to 14 of 14

Data validation

  1. #1
    Forum Contributor
    Join Date
    06-06-2007
    Posts
    248

    Data validation

    Dear sir,with best regards,asking you kindly to help me about the question mentioned in attached file.
    Thanks in advance.
    Attached Files Attached Files
    Last edited by tofimoon4; 01-26-2009 at 05:39 AM.

  2. #2
    Forum Contributor
    Join Date
    06-06-2007
    Posts
    248
    Dear sir, sorry for mistake, please consider ( data validation ) in the attached file as (drop down list).
    sorry again.

  3. #3
    Forum Contributor
    Join Date
    06-06-2007
    Posts
    248
    Dear sir,i am still waiting your honor.
    Sorry for insistence.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    I use a helper column (Col P) with the formula

    =IF(ISERROR(SMALL($C$13:$C$40,ROW(A1))),"",SMALL($C$13:$C$40,ROW(A1)))

    Then use a dynamic name ranged as below
    http://www.contextures.com/xlNames01.html#Dynamic


    =OFFSET(ورقة1!$P$14,0,0,COUNTIF(ورقة1!$P:$P,">0"),1)
    HTH

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  5. #5
    Forum Contributor
    Join Date
    06-06-2007
    Posts
    248
    Dear sir,many thanks for your reply, because i am newuser and dont know ( how and where i put these formulas) asking you kindly to applicate them on my example or directing me to the using way ,please.

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Sorry,

    Thought I had uploaded the example

    Here it is

    VBA Noob
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    06-06-2007
    Posts
    248
    Dear sir, sorry for the disturbance,but when i press any invoice nos. from the drop down list i got nothing,i mean i didnot obtain any change.
    I hope you shall help me again.
    Thanks in advance.

  8. #8
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    i mean i didnot obtain any change
    What change are you after?

    VBA Noob

  9. #9
    Forum Contributor
    Join Date
    06-06-2007
    Posts
    248
    Dear sir,it seems to me that my need wasnot clear enough to reach the goal , i think i took more from your time for this matter, my need was ( how to jump to the invoices details by clicking on their nos. from the drop down list ) or ( how to sort the invoices details by their nos.) for about ( 500 ) invoices.
    Many thanks for your help.

  10. #10
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Right click the sheet tab > select view code and paste in the below. Works when you change Cell L14

    Please Login or Register  to view this content.
    VBA Noob

  11. #11
    Forum Contributor
    Join Date
    06-06-2007
    Posts
    248
    Dear sir, you are genius ,it works very well.
    Thank you very much.

  12. #12
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  13. #13
    Forum Contributor
    Join Date
    06-06-2007
    Posts
    248
    dear sir,with my apologize,if i want to copy this code to another work book, what can i change exept ( l14)?

  14. #14
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    what can i change exept ( l14)?
    Not sure I follow. If you place the code in another sheet on another workbook and the data validation list is in a different cell then yes change the cell reference

    VBA Noob

+ 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