office script in excel on web

Phillip Saulnier 20 Reputation points
2023-06-27T17:52:29.4266667+00:00

I have a problem with my excel web worksheet

I have a sheet with the information on it

I have set the script to unhide the test sheet then hide the information sheet

After the test is finished there is a submit script to submit the result of the test, reopen the information sheet and hide the test sheet(for the next person to start test)

The first time it ran as suspected

After the scripted buttons work like set, but the information being entered on the test sheet was population the correct cells but on the hidden information sheet instead of the test sheet.

Microsoft 365 and Office Development Office JavaScript API
Microsoft 365 and Office Excel For business Windows
{count} votes

Accepted answer
  1. Tanay Prasad 2,250 Reputation points
    2023-06-30T05:45:22.5466667+00:00

    Well, the code seems to be fine only.

    I suggest you check this out-

    1. Verify that the "TEST" sheet's data entry code is pointing to the appropriate range for entering the data. Make sure your data entry code on the "TEST" sheet specifically refers to the range D18:D27.
    2. Look for any other code or event handlers that might be interfering: It's likely that the workbook's other event handlers or code, which are activated when data is input, are sending the data entry to the incorrect sheet.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.