Dear all,
I would like to ask you for your assistance with the script I was given by another member of this forum. Long story short, I have a simple Excel database where I keep the records of all the sales made by our salespeople. In order to make the process or entering details about each sale made I have developed a simple UserForm which opens by pressing command button on the main Excel sheet i.e. "Data".
Here's a print screen of the actual UserForm:
User_form_Example.jpg
Sorry for the language, it is Russian, but it gives you some idea of what I am talking about.
Anyway, I have a problem with one VBA script which is meant to allocate all the data from the main worksheet "Data" to other 5 worksheets (which are named after our sales people), so that by clicking on a particular worksheet I would have a clear idea how many and what type of products that particular sales person has sold.
Here's the actual script:
If I leave it as it is and run the script, it automatically says that there is a problem with the following line of code:Please Login or Register to view this content.
However, if I change this line of code to the following (as shown below) it seems to work but to a certain extent.Please Login or Register to view this content.
The main problem is that whenever I run the script it automatically pastes the data (which has been entered though the UserForm) on top of the heading in a particular worksheet (depending on the name of the sales person which has been chosen in the UserForm), which is represented in Column G.Please Login or Register to view this content.
I am very sorry for the vague description of the problem, but I sincerely hope that it makes some sense and that it will allow you to help me out with this problem.
Thank you very much in advance. Any suggestion will be highly appreciated.
Sincerely,
Aleksandr K.
Bookmarks