Excel VBA Userform to Search and Update Data -  Excel VBA Userform Example

Excel VBA Userform to Search and Update Data - Excel VBA Userform Example

Excel Destination

4 года назад

176,679 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

P R Bhat
P R Bhat - 22.08.2023 18:50

Sir Thank You So much. But I have One Problem. For Text Box 1 Code I think this is Search Button. I want For this button msg box if data ot found. can you help me please

Ответить
RO Videos
RO Videos - 29.07.2023 21:30

This is the best video I've found on the subject. Short, easy to follow. You are great.

Ответить
James Pyle
James Pyle - 02.05.2023 17:55

This is almost perfect. It would be much better if you could search for containing strings so like Searching for product name and searching for a string would bring up results and then a next button would allow you to scroll through the results - instead of just giving one result.

Ответить
Everything and Anything
Everything and Anything - 02.05.2023 14:29

Does not like it if Option Explicit is on

Ответить
Soe Thein
Soe Thein - 02.05.2023 13:24

Can I know different between the "product_id = Trim(TextBox1.Text)" instead of "product_id = TextBox1.Text " without Trim fnction?

Ответить
kim nguyen
kim nguyen - 18.02.2023 08:14

Hi can you add a code if product I’d not found in the search

Ответить
Yin Yin May
Yin Yin May - 15.02.2023 19:47

Thank you very much, it's very useful.

Ответить
Abdullah Azwer
Abdullah Azwer - 09.12.2022 09:02

What If I need to build sheet2 by a form using sheet1 datas....

Ответить
Suresh Panur
Suresh Panur - 19.11.2022 10:05

Hi Bro.. Good but if product id not found , it has to show some message and also deleting options . should have been better. I know this is basic but these are all mandatory.

Ответить
Neilson Salazar
Neilson Salazar - 11.11.2022 12:14

mine is not running can you help me

Ответить
kushal mukhoti
kushal mukhoti - 08.10.2022 10:39

Great Video. Very simple and easy to understand. Is there any way that I can edit the search criteria itself? Suppose, I want to rectify a wrong customer ID. Is there any way to do this without deleting the whole entry and reentering the same after correction?

Ответить
Mariam Shaker
Mariam Shaker - 16.09.2022 14:20

I just followed your instructions, but it doesn't really work, when I press on "debud", i see that it highlights the lastrow=Worksheets("Sheet1")...line and it says "Lastrow=Empty", what am I doing wrong?

Ответить
nsnahsbs
nsnahsbs - 21.08.2022 12:31

i got run time error '438'

Ответить
Dilpreet Singh Sethi
Dilpreet Singh Sethi - 18.08.2022 01:14

Hi
How we have to change the code if we have different sheets and we want to update a field on same userform. For eg, if we have same product id for two different cities, which we can put as sheet name. Then we can change product name for specific city into their sheet by this userform.

Ответить
APRHA Aroeira
APRHA Aroeira - 15.07.2022 13:16

I really like this example!... Congratulations. i'm 68years men and i start now to understand something .Thanks

Ответить
Maestro Jeyu
Maestro Jeyu - 13.07.2022 12:29

genius

Ответить
Ali Alizadeh
Ali Alizadeh - 07.07.2022 02:37

Thanx

Ответить
Type S
Type S - 29.06.2022 22:22

Nice and simple.

Ответить
Gary Diaz
Gary Diaz - 28.06.2022 10:26

Thank you

Ответить
Lars Jensen
Lars Jensen - 09.06.2022 21:31

Hello, for me, i get a mistake, because "i" is not defined... did you do that somewhere else?

Ответить
shellykomar
shellykomar - 08.06.2022 17:28

HI, Great Tutorial, I have to search the values according the reference value. which is in 6th column. how to code that?

Ответить
Limit One
Limit One - 24.04.2022 17:10

Can you add code if you type the product name and then search and all the other fields ...

Ответить
Нина Фарафонтова
Нина Фарафонтова - 09.04.2022 09:30

Убрать режим инкогнито

Ответить
Нина Фарафонтова
Нина Фарафонтова - 09.04.2022 09:29

Уберите канал инкогнито

Ответить
Нина Фарафонтова
Нина Фарафонтова - 09.04.2022 09:29

Введите нормальную работу каналу ЮТюб

Ответить
Нина Фарафонтова
Нина Фарафонтова - 09.04.2022 09:28

Отключить канал инкогнито

Ответить
JJ Arias
JJ Arias - 26.03.2022 20:44

i got stuck in the Userform , it looks like its not available in MAC. I need this thing that you're doing so i can put in our inventory and work it seamlessly.

Ответить
bin ibrahim
bin ibrahim - 25.03.2022 17:09

U r amazing my friend 😘😘😘

Ответить
John Paul Badajos
John Paul Badajos - 22.03.2022 10:38

Amazing, Thanks very informative. How about incorporating message for records not found within the sheets? thanks

Ответить
I Siva Krishna
I Siva Krishna - 12.03.2022 07:37

Hey great Video bro it made my work so easy, but i need help, instead of extracting data after typing it in box and search, will u pls show how to exract data frm dropdown list in the same user form with add buttion option??

Ответить
janice shen
janice shen - 02.03.2022 08:32

Good to have your lecture, it's so clear ........

Ответить
Kathik Dutta
Kathik Dutta - 28.02.2022 11:27

SIR, ALL IS GOOD, BUT VARIABLE IS NOT DECLARED !

Ответить
JATIN KUMAR
JATIN KUMAR - 10.02.2022 12:37

Thank u very much

Ответить
Diệu Cao
Diệu Cao - 01.02.2022 02:50

Thanks for this video! However, if I have a lot of columns and rows, are there any ways I can do that in a shorter way or I have to do it one line by one line?

Ответить
Javed Ahmed
Javed Ahmed - 26.12.2021 11:43

Very subtle explanation. Very useful. Screen shot itself is very informative

Ответить
Javed Ahmed
Javed Ahmed - 14.12.2021 21:35

Beautifully explained. Left no place to say anything negative.

Ответить
Tom Kochka
Tom Kochka - 12.12.2021 21:38

This was so easy to follow and just what I needed for a user form I was designing at work. Thank you!

Ответить
John G
John G - 25.11.2021 10:02

Thanks in a million. Great content. Awesome imagination. Grade: A++💥

Ответить
Sanjay Mahato
Sanjay Mahato - 22.11.2021 21:18

Display list of items like sales of same products in a day month

Ответить
Sandeep Dhruv
Sandeep Dhruv - 13.10.2021 22:38

Great, I was exactly looking for it, thanks bro great work 🙏

Ответить
Gray Jappe
Gray Jappe - 28.09.2021 02:45

Hi, when building a user form, how do I set via search and update data so it searches and changes records vertically instead of horizontal rows?

Ответить
Vee Fronda
Vee Fronda - 04.09.2021 03:23

What if in my table the product ID is not unique, can I still search and select the correct product name that i want to be displayed in the form? The product ID in my data can have two or more different product name.

Ответить
K C
K C - 03.09.2021 08:09

Nice and simple, thanks. How does the code work without declaring Lastrow and i as datatypes?

Ответить
V3X14G
V3X14G - 27.07.2021 01:27

any way to make it so its not case sensitive I've tried Lcase ect but no luck

Ответить
Sameer Pendharkar
Sameer Pendharkar - 10.07.2021 11:59

How to search for the data in 19th column in excel. My sheet has a data stored from 19th column. I tried using your code but it is not searching . give me blank output.

Ответить
Chamnan Prum
Chamnan Prum - 05.07.2021 10:11

how to show 2 rows dear?

Ответить
Bikram
Bikram - 01.07.2021 12:19

Thanks

Ответить
K Hansen
K Hansen - 15.05.2021 19:56

Thanks a million sir! Used this form as a stock-lookup/update for inventory

Ответить
David Haynes
David Haynes - 10.05.2021 17:04

I have been looking for a streamlined way to do this and your method works great! Thank you so much. One issue though: What if the user searches for a value that does not exist in the data? There needs to be a MsgBox indicating the value was not found. When I run the code with data not found, it just stalls and does nothing and the userform stays open.

Ответить