+ Reply to Thread
Results 1 to 17 of 17

Calling values from another page, changing them with the new values after corrections

  1. #1
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    97

    Calling values from another page, changing them with the new values after corrections

    Dear Members,

    We have our all values stored in Data sheet. Sometimes we need to correct some info, then we should CALL the invoice details from Data page, and we correct. Before pasting to our Data page, we should delete old records. So, we need your kind help for below macro;

    CALL: should bring all data for yellow cells from "Data" page + all data for red cells from "CON" page, depending on B11
    DRAFT: should search for B11 value of New sheet in A colomn of Data sheet, and delete all rows in "Data" sheet. And then, after deleting, it must copy all yellow data in New sheet to paste to first empty cell in Data sheet. + do same thing for red cells to CON page.

    Thank you
    Attached Files Attached Files
    Last edited by turkanet; 08-25-2018 at 06:55 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Calling values from another page, changing them with the new values after corrections

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 08-25-2018 at 08:24 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    97

    Re: Calling values from another page, changing them with the new values after corrections

    Dear Mehmet,
    Thank you for your kind help. however;
    Call - didnt work, did nothing when i created a module inside workbook, and ran from there.
    Draft - clears row on Data sheet, but not overwrites new values. Also clears only one row in CON, and deletes values of only a colomn of the second row.
    would you pls comment which part of the macros to be corrected accordingly? thank you.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Calling values from another page, changing them with the new values after corrections

    1. Call does work, unfortunately not if you use the macro name "Call". Try calling the Macro "Called" instead

    2. True Draft had a couple of errors in it.

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 08-26-2018 at 06:21 PM.

  5. #5
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    97

    Re: Calling values from another page, changing them with the new values after corrections

    Dear Mehmet,
    i have tried just like you advised, but unfortunately both macros do not work where do i do wrong? could you check attached result file that i have added both macros? Thank you.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Calling values from another page, changing them with the new values after corrections

    Your reference number is in B11

    You have no data with that reference

  7. #7
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    97

    Re: Calling values from another page, changing them with the new values after corrections

    Ok, that is correct, and when i tested with existing ref no, macros worked without any problem. but that means i have to ask your assistance for an additional case;
    macro should add new values on "new" sheet to data & con if ref on B11 does not exist on data & con. Thank you really.

  8. #8
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    97

    Re: Calling values from another page, changing them with the new values after corrections

    Dear Mehmet,
    Could you assist again?

  9. #9
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Calling values from another page, changing them with the new values after corrections

    Create two new sheets, "NewCon" and "NewData" then use these macros.




    Please Login or Register  to view this content.
    Last edited by mehmetcik; 08-29-2018 at 10:05 PM.

  10. #10
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    97

    Re: Calling values from another page, changing them with the new values after corrections

    Dear Mehmet,
    after changing all "data & con" pharases with "newdata & newcon" on "Called" on your last-given macro, i have below two cases;
    1- "Called" brings only 2 rows from newcon. some ref has 3 rows or more.
    2- When a ref is called, and made some changes on it, "Draft" does not delete old records of same ref before inputting them to "newdata". it only adds to last row.
    Files last version is attached. Thank you in advance.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    97

    Re: Calling values from another page, changing them with the new values after corrections

    Dear Mehmet,
    Do i have a chance for your comments?

  12. #12
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Calling values from another page, changing them with the new values after corrections

    I don't understand this:=

    after changing all "data & con" pharases with "newdata & newcon" on "Called" on your last-given macro, i have below two cases;


    All you had to do was to create two additional sheets.

    I will look at your last sample



    1- "Called" brings only 2 rows from Con. some ref has 3 rows or more.

    Your sample only shows two rows of data in a block. No allowance was made for anything else.

    Will all the data for a reference be in a block or could they be spread out?


    2- When a ref is called, and made some changes on it, "Draft" does not delete old records of same ref before inputting them to "newdata". it only adds to last row.

    By Definition, the Macro only Saves the data into NewData if the Ref cannot be found in Data.
    So what would need to be deleted?

    Please be aware I am going away for a week on Sunday.

    Please be precise so I can finish this before I go.
    Last edited by mehmetcik; 08-31-2018 at 04:42 PM.

  13. #13
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    97

    Re: Calling values from another page, changing them with the new values after corrections

    hi, ok;
    1- "Called" brings only 2 rows from Con. some ref has 3 rows or more. => Will all the data for a reference be in a block => yes, all rows from "con" regarding same ref should be brought. sometimes a ref has 1 sometimes 10 rows in "con" sheet.
    2- When a ref is called, and made some changes on it, "Draft" does not delete old records of same ref before inputting them to "newdata". it only adds to last row. => By Definition, the Macro only Saves the data into NewData if the Ref cannot be found in Data. So what would need to be deleted? => sometimes we need to amend some data. so we want to call the data by typing the ref, amend necessary info, and send them back to "data" sheet. because of values updated, when we run "draft" macro, rows of old data of same ref in "data" sheet should be deleted first, then amended new values should be written on "data".
    Please be aware I am going away for a week on Sunday. Please be precise so I can finish this before I go. => thank you, this is so kind really

  14. #14
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Calling values from another page, changing them with the new values after corrections

    Ok I have expanded "Called" as requested

    Please Login or Register  to view this content.



    This is the revised Draft programme

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 09-01-2018 at 11:44 PM.

  15. #15
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    97

    Re: Calling values from another page, changing them with the new values after corrections

    hi,
    "Called" does not bring data from "NewCon", only from "NewData"
    "Darft" does not clear old values in both "NewCon" and "NewData"
    Have you tried this at your PC? Could you share this file if so?

  16. #16
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    97

    Re: Calling values from another page, changing them with the new values after corrections

    Dear Mehmet,
    Need your kind reply. Thank you.

  17. #17
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Calling values from another page, changing them with the new values after corrections

    Try these

    Please Login or Register  to view this content.

+ 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] Pro rata corrections to a table of values is causing deviated summations
    By meld2020 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-11-2017, 11:44 AM
  2. Replies: 2
    Last Post: 09-06-2015, 12:03 AM
  3. Changing column values based on header values
    By CXsjr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-24-2013, 12:11 PM
  4. Finding Values Difference when values are ever changing
    By Gamerxx13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-14-2013, 08:23 PM
  5. Continuous changing cell values - record highest and lowest values in seperate cells
    By attienel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-2013, 05:12 PM
  6. [SOLVED] Changing number values into sequential text values.
    By alex.l_91 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-17-2013, 02:37 AM
  7. Changing Calculated Values Immediately to Plain Values
    By excelCPA in forum Excel General
    Replies: 4
    Last Post: 09-21-2006, 02:53 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