Forum

Help with error and...
 
Notifications
Clear all

Help with error and vba code

12 Posts
4 Users
0 Reactions
81 Views
(@david1966)
Posts: 4
Active Member
Topic starter
 

Could someone please tell me why im getting a vba error in this excel database when adding data please
im just learning excel Thanks

 
Posted : 21/05/2023 1:13 am
Alan Sidman
(@alansidman)
Posts: 223
Member Moderator
 

Attached file is unreadable. Please try again.

 
Posted : 21/05/2023 11:58 am
(@david1966)
Posts: 4
Active Member
Topic starter
 

Try this one

 
Posted : 21/05/2023 4:15 pm
(@david1966)
Posts: 4
Active Member
Topic starter
 

here it is as a zip

 
Posted : 22/05/2023 3:24 am
Alan Sidman
(@alansidman)
Posts: 223
Member Moderator
 

unable to assist. File is locked as read only and cannot change on my side. Macro will not run as it is blocked by security on your end. Sorry. Good Luck.

 
Posted : 22/05/2023 3:59 pm
(@debaser)
Posts: 837
Member Moderator
 

How big is your monitor? Your userform is over 6k pixels wide, which makes it extremely hard to use!

 
Posted : 23/05/2023 5:36 am
(@david1966)
Posts: 4
Active Member
Topic starter
 

@Velouria Ok i have to add code to stop it from resizing don't know why it dose it sometime? i been going into vba and resize it back to original size.

 
Posted : 23/05/2023 3:23 pm
(@keebellah)
Posts: 373
Reputable Member
 

The userform is not resizing the userform settings are set to this size.
It's very bad coding and the error, well that's another issue.
O yes, and which version of Excel are you using?

 
Posted : 24/05/2023 2:04 am
(@debaser)
Posts: 837
Member Moderator
 

It sounds (and looks) to me as though there may be some corruption in your workbook. I'd suggest rebuilding it.

 
Posted : 25/05/2023 4:25 am
(@keebellah)
Posts: 373
Reputable Member
 

When you look at the form size it's set to huge width and height.
Question of redesigning the userform and if needed use the zoom function.
Nothing to do with corrupted workbook for as far as I can see.
The OP has not informed us of the Office version he's using

 
Posted : 26/05/2023 7:38 am
(@debaser)
Posts: 837
Member Moderator
 

Look at the controls on the form - do any of them look right to you? They all look distorted and they appear much bigger than their properties suggest they should be. For example, cmbShop is a combobox that is 150 pixels wide but it barely fits on my 1920x1080 monitor!

 
Posted : 27/05/2023 2:46 am
(@keebellah)
Posts: 373
Reputable Member
 

I honestly don't knwo what you have done but the size of the values in the Userform is out of bounds.
Furthermore the code is, if I may say so, very unprofesiionally built without any real 'intelligence built into it.
I made some adjustments to the form so that it's readable and visible like it should, but the code behind the buttons , well ...

Hope you can work witth this version and I suggest you lookup some code snippets and ideas on-line to make it user friendly.
Sorry for the 'bites' but as a VBA coder it hurts to see code like this

 
Posted : 28/05/2023 2:23 am
Share: