ChatGPT right ???

  • so i tried asking chatbot this question and im not sure if this is right.....


    In excel How do I use VBA to copy cells "C3" in sheet 1 to cell "E23" in sheet 2, cell "E3" in sheet 1 to cell "F5" in sheet 2, cell "G3" in sheet 1 to cell "B22" in sheet 2, cell "H3" in sheet 1 to cell "B13"in sheet 2, cell "I3" in sheet 1 to cell "B20" in sheet 2, cell "K3" in sheet 1 to cell "C20" in sheet 2 starting from row 3 from sheet 1 only if cell "E3" in sheet 1 is filled in and if column "K" in sheet 1 is filled in afterwards.



    this is the code i got



  • Hopefully ... you have applied in a test file ... to find out if you are getting your expected result ... ;)


    The code itself does not show mistakes :) but does it perform the task you anticipated ... ???

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

  • It's a very close hit, but I suspect you'll see a minor tweak that needs to happen :) Very interesting to see these results though!


    Hi Sam,


    You are absolutely right !!!


    What would be extremely interesting, in my opinion, is to know :


    1. How is ChatGPT helping out any user to properly define and describe his need ???


    2. Once a proposal is designed, is ChatGPT ultimately providing more Autonomy or more Dependency ???

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

  • Carim

    Changed the title of the thread from “ChatGPT right?????” to “ChatGPT right ???”.
  • so i tweaked the question


    In excel How do I use VBA to copy text only in cells "A3" from sheet 1 to cell "B23" from sheet 2, cells "B3" from sheet 1 to cell "C23" from sheet 2, cell "C3" from sheet 1 to cell "E23" from sheet 2, cell "E3" from sheet 1 to cell "F5" from sheet 2, cell "G3" from sheet 1 to cell "B22" from sheet 2, cell "H3" from sheet 1 to cell "B13"from sheet 2, cell "L3" from sheet 1 to cell "B20" from sheet 2, cell "K3" from sheet 1 to cell "C20" from sheet 2 starting from row 3 from sheet 1 only if cell "E3" from sheet 1 is filled in and if column "K" from sheet 1 is filled in afterwards.


    got this


    but it didnt lol HAHAHAHAH

  • tried it again, and it seems this code some what works


  • From your comments and your various attempts, it would seem the main challenge is no longer to write a macro ...


    BUT to exactly describe ... and clearly write down your need ... ;)

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

  • Do you mean this:


    If A3 in sheet1 is not blank AND Sheet1 Column K all rows in table are completely filled in then

    • Copy Sheet1 A3 to Sheet2 B23
    • Copy Sheet1 B3 to Sheet2 C23
    • Copy Sheet1 C3 to Sheet2 E23
    • Copy Sheet1 D3 to Sheet2 F23
    • Copy Sheet1 G3 to Sheet2 B22
    • Copy Sheet1 H3 to Sheet2 B13
    • Copy Sheet1 L3 to Sheet2 B20
    • Copy Sheet1 K3 to Sheet2 C20

    Or this


    If A3 in sheet1 is not blank then

    • Copy Sheet1 A3 to Sheet2 B23
    • Copy Sheet1 B3 to Sheet2 C23
    • Copy Sheet1 C3 to Sheet2 E23
    • Copy Sheet1 D3 to Sheet2 F23
    • Copy Sheet1 G3 to Sheet2 B22
    • Copy Sheet1 H3 to Sheet2 B13

    And if Sheet1 Column K all rows in table are completely filled in then

    • Copy Sheet1 G3 to Sheet2 B22
    • Copy Sheet1 H3 to Sheet2 B13

    We now have a reputation system in place. If my reply helped please "Like" the reply by clicking the "Like" icon at bottom right of my reply.

  • I can now become a excel vba pro like you!!

    In your opinion, is ChatGPT a good learning tool ? :)

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

  • wow after all my readings, watching videos and learning by my self, i did not realized that there is an AI for this. guess that i'm still living in the dark age hahaha.


    but in my opinion using this AI is like playing a video gaming. you jump into main boss and finish it, but you can't get the reward coz you skipped the quest haha

    well, if it helps, it helps :D

    Noob here, just want to learn more. I'm no expert nor a coder, I only learn by reading and watching youtube guides specially in this forum.

  • Artificial Intelligence has been invading our daily lives in many areas : Google Translate, Waze, Autonomous cars, etc ...


    And ChatGPT is only the beginning ... CES 2023 is currently revealing some crazy tech !!!

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

  • well organized!!, its actually the first one

  • Try the attached test file, click the "Copy Data" button on Sheet1


    Rather than modify the code you got from ChatGPT, I made a new, more efficient code.


    Code assigned to the button:

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!