VBA Challenge UserForm

Copper Contributor

My goals/challenges:

@Hans Vogelaar 

 

1) When adding a new project, I want it to go as the last item in the same cost center group. (For example, if I have a new project on Cost Center 2000, the new line would be in row 7. The new project should go on the last line of the group of the same cost center).

 

2) While Tracker LC is the main one where the new project will go, I want the new line to be duplicated in "Tracker USD" (with the formulas intact).

 

3) I would like the form to refresh back to blank state after each use.

 

 

6 Replies

@El_Cumulo305 

Try this version. I corrected the tab order of the userform, and modified the code.

Hello @Hans Vogelaar,

 

Thank you very much for your answer. The code is working beautifuly. 

 

However, in the dummy file that I sent, I forgot to include some additional columns, which cause formulas issues when I use the userform on my documents. I wasn't able to replicate the code to cover the extra columns. 

 

Additionally, is it possible to have the currency always set as "USD" in the "Tracker USD" for the new lines. 

 

Thank you again.

 

Sincerely,

Philippe 

 

 

 

@El_Cumulo305 

See the attached version.

@Hans Vogelaar 

 

Thanks you very much.

 

Just one last thing; when I add a project on the last line, the format with the vertical black line do not follow. See attached screenshot:

 

El_Cumulo305_0-1605541001837.png

 

Can you please fix this.


Thanks.

 

Sincerely

 

@El_Cumulo305 

Here is a new version.

@Hans Vogelaar 

 

Thank you ! It's absolutely perfect ! 

 

Sincerely,

Philippe