Hi,
I have very little experience with VBA in Excel and would really appreciate some help, as I've tried searching for what i need and I can't find anything specific on google.
I am in the process of creating a userform that will show company details, and would really like it to be able to enter an account number which when the command button is clicked, will populate other company details on the form.
I currently have the following fields:
TextBox25 - this is the field where the account number will be entered
CommandButton5 - this is the button I would like to click in order to search for the account number input in TextBox25, and populate the below fields:
TextBox26 - Company Name
TextBox28 - Company Address
The data that it will be searching from is in a tab entitled 'Company Details' and the relevant data is in the following columns:
Account Number = Column A
Company Name = Column C
Company Address = Column J
I hope this makes sense to somebody out there and would like to thank you in advance for any help given!
I have very little experience with VBA in Excel and would really appreciate some help, as I've tried searching for what i need and I can't find anything specific on google.
I am in the process of creating a userform that will show company details, and would really like it to be able to enter an account number which when the command button is clicked, will populate other company details on the form.
I currently have the following fields:
TextBox25 - this is the field where the account number will be entered
CommandButton5 - this is the button I would like to click in order to search for the account number input in TextBox25, and populate the below fields:
TextBox26 - Company Name
TextBox28 - Company Address
The data that it will be searching from is in a tab entitled 'Company Details' and the relevant data is in the following columns:
Account Number = Column A
Company Name = Column C
Company Address = Column J
I hope this makes sense to somebody out there and would like to thank you in advance for any help given!