Results 1 to 7 of 7

Thread: Display a message if already saved data

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Junior Member
    Join Date
    Dec 2020
    Posts
    10
    Rep Power
    0
    Quote Originally Posted by DocAElstein View Post
    Hello Abdul
    I probably have not understood exactly what you want.
    But you may be able to adapt the following macros to exactly what you want
    Thanks for your quick response, First of all please forgive. I think it is better to explain what i want instead of VBA. Sorry for that.

    My goal is
    1) Save the data from Test Sheet to Result Sheet.

    2) Before saving the data I want to display a message "Do you want to save your Result, If once submitted can't be edited", vbYesNo + vbQuestion + vbDefaultButton2, "Save Result")
    If Yes then save the data and display message as "Your Result is submitted successfully. You have secured Total Marks is " & Sheets("Test").Range("J4").Value
    If No. display a message "Your Data not saved, you can make correction if you want then submit again"

    3) If Reg. No. already saved in column C of the Result sheet is same as Reg. No. D3 of the Test sheet, then I want to alert message as "Register Number " & FindWhat & " is already submitted Test at " & Sheets("Test").Range("J6").Value & ". It can't be edited or modified. You have already secured " & Sheets("Test").Range("J5").Value & " marks."
    Then back to Test Sheet.
    Please check my New attached Sheet. I think my VBA code in this sheet is not properly aligned.
    Attached Files Attached Files
    Last edited by DocAElstein; 01-26-2021 at 12:27 AM.

Similar Threads

  1. Replies: 5
    Last Post: 09-16-2016, 12:57 PM
  2. Replies: 0
    Last Post: 07-07-2013, 01:52 AM
  3. Replies: 2
    Last Post: 07-02-2013, 02:36 PM
  4. Display sheet names in a message box
    By pells in forum Excel Help
    Replies: 4
    Last Post: 02-13-2013, 07:33 PM
  5. Display numbers in Lakhs
    By Prabhu in forum Excel Help
    Replies: 1
    Last Post: 01-29-2012, 02:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •