albertc30
Well-known Member
- Joined
- May 7, 2012
- Messages
- 1,091
- Office Version
- 2019
- Platform
- Windows
Hi all, again.
If I can't do the simple thing, I will NEVER ever stand a chance at learning how to correctly code.
Ok. There's a form that loads when a spreadsheet is clicked;
This form has 4 command buttons.
One of these buttons are called New Customer (form name "adnecustomer", button name is "CBCusNewCus") and it should open the new customer form.
Now this was working fine, till I done something but I don't have a clue on earth what did I do.
What on earth have I done to make the entire thing go crazy?
All other two forms that were working fine have completely gone bonkers.
Even though I have been meddling with vba excel coding for a few years now, I am pretty much a novice. This takes me through the night as I do love it and how it works. Sadly, I'll never amount to a brilliant coder I'm afraid.
Again, any help is well and truly welcome and much appreciated.
Please point out in the right direction.
Regards,
Carlos
If I can't do the simple thing, I will NEVER ever stand a chance at learning how to correctly code.
Ok. There's a form that loads when a spreadsheet is clicked;
Code:
Private Sub Worksheet_Activate()
CustForm.Show
End Sub
This form has 4 command buttons.
One of these buttons are called New Customer (form name "adnecustomer", button name is "CBCusNewCus") and it should open the new customer form.
Now this was working fine, till I done something but I don't have a clue on earth what did I do.
Code:
Private Sub CBCusNewCus_Click()
CustForm.Hide
adnecustomer.Show
End Sub
What on earth have I done to make the entire thing go crazy?
All other two forms that were working fine have completely gone bonkers.
Even though I have been meddling with vba excel coding for a few years now, I am pretty much a novice. This takes me through the night as I do love it and how it works. Sadly, I'll never amount to a brilliant coder I'm afraid.
Again, any help is well and truly welcome and much appreciated.
Please point out in the right direction.
Regards,
Carlos