Hi
I have created a Add button in userform and I coded but when it runs it taking too long time to insert the values to worksheet from userform textbox i'm not sure why...
Can you guys please help.
Thanks
Thiru
Hi
I have created a Add button in userform and I coded but when it runs it taking too long time to insert the values to worksheet from userform textbox i'm not sure why...
Can you guys please help.
Thanks
Thiru
Last edited by sthiru; 05-21-2015 at 05:04 AM.
It's a very large form with many tabs and many boxes. We need to know which tab you are using and what data to put in what boxes when the problem occurs. What button to push etc.
We need to recreate exactly what you are doing when this happens.
Thanks.![]()
Okay that answers the tab part, what about the other questions? What do we enter into or do with each box and which button do we push?
Thiru, you need to read all the questions and answer all the questions.
What fields are required to be filled in, and what button do we push? In your first post you said "Add" button but there is no "Add" button.
Deleted DeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeletedDeleted
Last edited by sthiru; 05-21-2015 at 05:06 AM.
That's better
It seems to me that it should not be that slow, but I have implemented a change that speeds it up.
Your are doing over 100 write operations to individual cells. This can be done in a single operation with an array. I have declared an array called Arr and stored all the data in the array. This is much faster than writing data to cells. Then I dump the array to the worksheet all at one time, also much faster than individual writes.
You will need to check your output to make sure it is still correct.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks