+ Reply to Thread
Results 1 to 17 of 17

adding a value to existing code

  1. #1
    Forum Contributor
    Join Date
    03-09-2007
    Location
    Australia
    MS-Off Ver
    Office 10
    Posts
    371

    adding a value to existing code

    with great assistance from Humdingaling I was able to get code which allowed for a search of Name, Inv No and date
    e.g. Tom - 12121212 - 12-5-15
    The code follows:-

    HTML Code: 
    Now what I would like to add is a further bit that of Value
    e.g.
    Tom - 12121212 - 12-5-15 - $ 45.00

    Now can I get assistance to add to the above code to make this happen or is it not possible
    Currently the
    Name is in Col B
    Invoice in C
    Date in D
    and the Hyperlink in Col e
    The Hyperlink will need to be shifted across one col to accomodate the Value
    Thanks in anticipation

  2. #2
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    Re: adding a value to existing code

    Do you maybe have a sample sheet? That would make it easier to understand the problem and help out

    Ignore my question for a sample sheet... coz it would need a sample filled directory xD
    how are the PDF files named?
    Last edited by Evolta; 06-04-2015 at 02:51 AM.
    Inveniam Viam Aut Faciam

  3. #3
    Forum Contributor
    Join Date
    03-09-2007
    Location
    Australia
    MS-Off Ver
    Office 10
    Posts
    371

    Re: adding a value to existing code

    I have added the example
    This need to be in a folder with pdf files to work
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    Re: adding a value to existing code

    I think I understand how it works,.. but I assume that the files you are looking for have a certain format?

  5. #5
    Forum Contributor
    Join Date
    03-09-2007
    Location
    Australia
    MS-Off Ver
    Office 10
    Posts
    371

    Re: adding a value to existing code

    Yes
    The format is

    Ted - 1212121212 - 12-5-15
    Bill - 333333333 - 13-5-15

    and I am wanting to add

    Ted - 1212121212 - 12-5-15 - $ 45.00
    Bill - 333333333 - 13-5-15 - $ 23.00

  6. #6
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    Re: adding a value to existing code

    Give this a try
    Search PDF_2.xlsm

  7. #7
    Forum Contributor
    Join Date
    03-09-2007
    Location
    Australia
    MS-Off Ver
    Office 10
    Posts
    371

    Re: adding a value to existing code

    That's working fine except I am getting a - directly after the date
    e.g. 12-5-15-

  8. #8
    Forum Contributor
    Join Date
    03-09-2007
    Location
    Australia
    MS-Off Ver
    Office 10
    Posts
    371

    Re: adding a value to existing code

    Sorry what I am getting is 12-5-15 -
    there is a space after the date and the -

  9. #9
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    Re: adding a value to existing code

    Try replacing this line:
    Please Login or Register  to view this content.
    With this one:
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    03-09-2007
    Location
    Australia
    MS-Off Ver
    Office 10
    Posts
    371

    Re: adding a value to existing code

    Sorry, but I am still getting the:- 3-6-15 -
    Meaning the dash after the date.
    All else is fine

  11. #11
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    Re: adding a value to existing code

    Ah, it worked fine on my examplefile.

    try this:
    Please Login or Register  to view this content.
    If this is not working, please send me the full name of a pdf file (replace real names and other sensitive data with fake information)

  12. #12
    Forum Contributor
    Join Date
    03-09-2007
    Location
    Australia
    MS-Off Ver
    Office 10
    Posts
    371

    Re: adding a value to existing code

    API - 145981 - 12-5-15 - $ 45.00.pdf
    API - 145983 - 13-5-15 - $ 5,623.00.pdf
    TIP - 36987412 - 15-5-15 - $ 908.00.pdf
    Round Can - 56841478 - 16-5-15 - $ 10,000.pdf

    Hope that helps

  13. #13
    Forum Contributor
    Join Date
    03-09-2007
    Location
    Australia
    MS-Off Ver
    Office 10
    Posts
    371

    Re: adding a value to existing code

    If it helps the - appears only if the search is done by date
    If the search is by Invoice number the date appears correctly

  14. #14
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    Re: adding a value to existing code

    I'm trying to understand why, but I cannot find it. It works fine for me

  15. #15
    Forum Contributor
    Join Date
    03-09-2007
    Location
    Australia
    MS-Off Ver
    Office 10
    Posts
    371

    Re: adding a value to existing code

    When I search by date I get all the fields but with the date it is shown as 12-5-15 -
    its the dash on the end that is the problem

  16. #16
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    Re: adding a value to existing code

    Hopefully the " -" are now gone.
    Search PDF_2.xlsm

  17. #17
    Forum Contributor
    Join Date
    03-09-2007
    Location
    Australia
    MS-Off Ver
    Office 10
    Posts
    371

    Re: adding a value to existing code

    Many thanks that did the trick
    Appreciate your assistance and patience
    Regards

+ 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. Adding to some existing VBA code
    By richard11153 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 03-10-2014, 08:31 PM
  2. Existing VBA that needs loop adding to the code.
    By dave1983 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-06-2012, 10:54 AM
  3. Replies: 2
    Last Post: 03-17-2011, 08:55 PM
  4. Help adding to existing code
    By Jrykiss in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-02-2010, 06:11 PM
  5. Adding Code to an Existing UserForm with VBA
    By JimmyA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-08-2010, 12:02 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