Try Below stuufs,
1.Try highlighting WebEdit, verify whether QTP is able to recognize it
2. Verify output from DataTable("ACCT1", dtGlobalSheet), i doubt this "ACCT1" might have more than 1 value
3.You also can take this Function ChangeAcctNumber () alone and try debugging it
4. Descriptive programming will solve most of your problems.
1.Try highlighting WebEdit, verify whether QTP is able to recognize it
2. Verify output from DataTable("ACCT1", dtGlobalSheet), i doubt this "ACCT1" might have more than 1 value
3.You also can take this Function ChangeAcctNumber () alone and try debugging it
4. Descriptive programming will solve most of your problems.