+ Reply to Thread
Results 1 to 19 of 19

Find & Replace on workbook " HELP " :(

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    62

    Find & Replace on workbook " HELP " :(



    hi everyone, and first thinks first, thanks for having me .

    ok, i got a workbook with 7 worksheets and i want a Macro on 8th page of the workbook to search for a product, and replace the price that is located on same row, but different column.
    there is below an example so you can understand what i need :
    column(A) Col(B) Col(C) Col(H)
    SKU commodity product Price

    so, i want a Macro search, that will scroll on all sheets (7) and find the product name from column C and replace his price on column H.

    is that possible to happen?
    Thank you in advance for your help

  2. #2
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Find & Replace on workbook " HELP " :(

    Something I can't understand, send me an example file with highlighted expected output in it.

    Abdul

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Find & Replace on workbook " HELP " :(

    Hi, jetlee,

    use FIND to build a range object which may be used to replace as it would deliver a range to use for Offset to replace. Will it only be one product on one sheet, one product on multiple sheets or multiple founds on sheets?

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Registered User
    Join Date
    04-18-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: Find & Replace on workbook " HELP " :(

    Quote Originally Posted by abduljaleel.mca View Post
    Something I can't understand, send me an example file with highlighted expected output in it.

    Abdul
    i am sending you a PDF with a comment, and explenation
    i hope this helps.
    thank you so much for your reply.
    Page 1.pdfPage 1.pdfPage 1.pdf

  5. #5
    Registered User
    Join Date
    04-18-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: Find & Replace on workbook " HELP " :(

    hi, i have tried this way, but is too much to keep going to different sheets from the find search and change the prices, but thanks for the reply.

  6. #6
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Find & Replace on workbook " HELP " :(

    Just to confirm, is this the o/p you are looking for?...It is just an example file for 1 sheet.....Please confirm so that I can start work for you...
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-18-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: Find & Replace on workbook " HELP " :(

    Quote Originally Posted by abduljaleel.mca View Post
    Just to confirm, is this the o/p you are looking for?...It is just an example file for 1 sheet.....Please confirm so that I can start work for you...
    yes, the macro needs to find the product name i will type, and then go to column H and change the price i give.
    Macro then will scroll all sheets, and where is same product name, will change his price.
    Product is located on all sheets on column C, and price on same row as the product, but on column H.

    thanks in advance

  8. #8
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Find & Replace on workbook " HELP " :(

    OKay....clear now....wait for sometime....


    Abdul

  9. #9
    Registered User
    Join Date
    04-18-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: Find & Replace on workbook " HELP " :(

    Quote Originally Posted by abduljaleel.mca View Post
    OKay....clear now....wait for sometime....


    Abdul
    Thank you !!

  10. #10
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Find & Replace on workbook " HELP " :(

    Use the attached macro.....
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    04-18-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: Find & Replace on workbook " HELP " :(

    Quote Originally Posted by abduljaleel.mca View Post
    Use the attached macro.....
    hi, i will do soon as i get home, because on the excel im using, i havent got the developer tub to see the code.

    thank you very much, and i will let you know later the results

  12. #12
    Registered User
    Join Date
    04-18-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: Find & Replace on workbook " HELP " :(

    Quote Originally Posted by abduljaleel.mca View Post
    Use the attached macro.....
    Many Thanks !!!!!

    works like a charm !!

    very much appreciated !!!

  13. #13
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Find & Replace on workbook " HELP " :(

    Thanks for the feedback....Mark this thread as Solved...
    Last edited by abduljaleel.mca; 04-19-2013 at 09:00 AM.

  14. #14
    Registered User
    Join Date
    04-18-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: Find & Replace on workbook " HELP " :(

    Stock Sheet V 4.xlsm
    Quote Originally Posted by abduljaleel.mca View Post
    Thanks for the feedback....Mark this thread as Solved...
    hi again,
    when i put it to work on my sheeet, gives me : Error run time 91
    object variable or with block variable not set.
    i'm sure is an easy fix, but i am sending you the workbook too.
    thanks again and sorry.
    this is where the code is highlihted:
    ch = Cells.Find(What:=prdname, After:=ActiveCell, LookIn:=xlFormulas, LookAt _
    :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
    False, SearchFormat:=False).Activate
    Last edited by jetlee; 04-19-2013 at 12:06 PM.

  15. #15
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Find & Replace on workbook " HELP " :(

    I am looking in to this....

  16. #16
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Find & Replace on workbook " HELP " :(

    This is because of no product found in the excel file you entered, will send you the updated file shortly..

  17. #17
    Registered User
    Join Date
    04-18-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: Find & Replace on workbook " HELP " :(

    Quote Originally Posted by abduljaleel.mca View Post
    This is because of no product found in the excel file you entered, will send you the updated file shortly..
    thank you, that's great !!

  18. #18
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Find & Replace on workbook " HELP " :(

    Use this one...Let me know if any more concerns...
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    04-18-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: Find & Replace on workbook " HELP " :(

    Quote Originally Posted by abduljaleel.mca View Post
    Use this one...Let me know if any more concerns...
    THANK YOU !!
    that's what i wanted !!
    you are a star !!

+ 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