Excel Macro Class 3 - Looping through Ranges & Working with Cells

Excel Macro Class 3 - Looping through Ranges & Working with Cells

TeachExcel

6 лет назад

131,953 Просмотров

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


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

Abhinav kumar
Abhinav kumar - 18.06.2023 18:41

Please speak in hindi.

Ответить
Gerard van Eggermond
Gerard van Eggermond - 12.06.2023 14:24

Hello sir, I found it interesting even though I don't fully understand it, maybe you can help me, I made code but it's long, can you help me make it smaller?

Ответить
Tanvir Mostofa
Tanvir Mostofa - 12.03.2023 09:51

Dear brother, I want to know how to solve the three criteria against floor value index match function in visual basic ? Can i shear a excel file.

Ответить
montasr alkady
montasr alkady - 07.02.2023 17:41

why Excel on Mac , does not speak cells ?

Ответить
Adum Coca
Adum Coca - 06.02.2023 07:11

spent two hours fumbling on a loop, then found this and fixed it in 5 seconds. thanks!

Ответить
Tanner Tucker
Tanner Tucker - 05.02.2023 06:29

You teach very well. Thank you.

Ответить
• SONG HANYANG •
• SONG HANYANG • - 21.12.2022 17:47

Quality content 🙏
Thank you very very very very much sir

Ответить
CRYPTO GH🇬🇭
CRYPTO GH🇬🇭 - 19.11.2022 20:21

This sound just like Python 💫

Ответить
Q WW
Q WW - 16.05.2022 03:49

You are absolutely the best on Macro.

Ответить
Canadian Canaries
Canadian Canaries - 26.04.2022 17:09

What is difference between Module and Class Module

Ответить
Scott Gaines
Scott Gaines - 08.09.2021 17:49

Great video! You explained the for each loop very well. Things make more sense now. Appreciate it!

Ответить
Giri Film Making
Giri Film Making - 29.08.2021 05:17

Hi, thanks for nice tutorial. I have a datasheet with 50rows . And. I have another sheet with userforms. My intital plan was to enter all those data manually, which I can do successfully. But now I think, For each row of those 50 rows I am manually entering in to userform 1 or userform 2 depending on the criteria in column B of my datasheet, why can't I automate that as well. Like, For each row, if colum b cell... Then call userform 1, Next... Do you think that sort if looping us possible?

Ответить
Vijay Sahal
Vijay Sahal - 15.05.2021 20:31

Nice 👍🏻👍🏻👍🏻👍🏻

Ответить
AVP Production
AVP Production - 25.03.2021 04:16

Thank you for making my life easy.. god bless

Ответить
jen p
jen p - 05.02.2021 05:27

On the section where you have the If statement and Msg Box, each time I run it I get "Can't Execute Code in Break Mode, I've gone to the Debug menu and cleared all breaks but can't get the error to go away what am I missing?

Ответить
Murat Kucuk
Murat Kucuk - 15.01.2021 08:18

I've watched lots of videos for to learn VBA for beginners, and your video is by far the best. You are very good to teach something , congratulation, Thank you for your videos

Ответить
Joymy Espenedo Gorra
Joymy Espenedo Gorra - 14.01.2021 17:03

Hi I've been following your tutorial now and i would like to ask if , there's a way to create a Macro and how to code in this kind of example..
We have a monthly liquidation from store
So. We manually encode all Sales in excel in our format by Filtering or find..the Sku's or Item code Manually. n imagine we have 300 Stores, so tiring.
I hope you can Help me with this.thank you so much.

Ответить
Jonathan Fraga
Jonathan Fraga - 15.11.2020 10:28

Thank you! Excellent video.

Ответить
Savita Kadekodi
Savita Kadekodi - 05.11.2020 23:56

Awesome helpful video.. Thank you!

Ответить
Rere hoho
Rere hoho - 17.10.2020 11:34

thank you so much you explain so neat its just easy to understand ..

Ответить
Gábor Csomor
Gábor Csomor - 08.10.2020 13:26

I love your voice and style. It's like listing to Salman Khan on Khan Academy. Thanks for the tutorials!

Ответить
Shivkumar R
Shivkumar R - 07.07.2020 15:55

exhausting but run once or twice and you have it clear.

Ответить
MMA Media
MMA Media - 14.05.2020 07:53

I copied the macros down to - MsgBox "Cell " & c.address & " equals green." but for some reason there is no msgbox coming up when I run it. I have checked and double checked that my text is written the same as yours, but it just won't work. And of course there is no error msg, do you have a clue why the msgbox won't appear. I have the cells selected by the way. thank you

Ответить
Umar Shah
Umar Shah - 26.03.2020 18:43

Hey thanks very much for the videos , just wanted to know can we use the offset formula without Msgbox. If yes then how. Or is there any other method used to tell excel to move to next cell after executing the macro

Ответить
Xiaoyu Wang [Alumni]
Xiaoyu Wang [Alumni] - 28.01.2020 08:08

Great video! So helpful for my job hunting preparation.

Ответить
Harmeet Bishnoi
Harmeet Bishnoi - 23.01.2020 07:47

can we use the "selection" keyword while taking selecting from the user via kind of input form
early response much appreciated mate !!

Ответить
Jimmy Lao
Jimmy Lao - 17.01.2020 18:59

I would want know the module that we wrote , they wont be there for next time when we open the excel ?? that is what happen to me. I could not find the CODE that I wrote yesterday for class 1 and class 2

Ответить
Shen Ay
Shen Ay - 31.12.2019 01:46

Thank you for explaining this in a very simple way. Everything makes sense. You're awesome!

Ответить
B rye
B rye - 19.12.2019 01:24

On the very first example, I Get{ run time error 1004 Method'Range of Object_Globalfailed}

Ответить
$nuffle
$nuffle - 03.12.2019 13:12

Best excel courses on the net.
Thank you!

Ответить
Noob Noob
Noob Noob - 05.11.2019 17:38

Thank you for your enthusiasm on teaching this topic. Youve been helpful

Ответить
GrimsonForce
GrimsonForce - 01.11.2019 20:45

For some reason the If statement doesn't work at all. The text is formatted as general. Msgbox will work for anything else but if place the contents in an "If" statement nothing happens.

Ответить
TheTraveler
TheTraveler - 20.10.2019 18:40

where are the workbooks? have they been removed?

Ответить
Hazem Ali
Hazem Ali - 11.10.2019 15:36

please we need more and more videos for VBA we need to know how make business (handle massive date )with VBA

Ответить
Hazem Ali
Hazem Ali - 11.10.2019 15:33

Many Many Thanks Mr.

Ответить
koyel bhattacharjee
koyel bhattacharjee - 04.09.2019 10:45

Your tutorials are really awesome and very elaborate.
Great!
Cheers!

Ответить
Ashish Kumawat
Ashish Kumawat - 27.07.2019 13:36

sir ye coding kis software me ho rhi h plz software sand link whatsaap 9753303022

Ответить
B3D
B3D - 03.07.2019 15:26

very help video

Ответить
Antoinette Harris
Antoinette Harris - 14.06.2019 18:43

Very helpful tutorials 👍
Have a question though, when running the If Statement I get an error that says " Can't execute code break mode" , please advise

Ответить
The Tartarian Federation
The Tartarian Federation - 28.05.2019 06:21

Do you have to use "set" when declaring a variable because in the previous video you just made a variable without using "set"

Ответить
Azam
Azam - 02.05.2019 07:33

Can I download all the programming code being taught?

Ответить
I am not Mad
I am not Mad - 28.03.2019 00:54

I think it goes from simple to pretty complex in my opinion because I need to figure out what exactly c is. Please correct me if I'm wrong, but I think "c" is = the object "Cell" but has to be declared as a variable to work in the for loop.

are my declarations and Set values right?:

Sub LoopTest()

Dim c As Object
Dim myRange As Range

Set myRange = Range("A2:A4")
Set c = Cells

'For Each c In myRange
For Each c In Selection

MsgBox c.Value

Next c

End Sub

Ответить
A. Bafakih
A. Bafakih - 05.03.2019 19:29

If I want to generate a loop to check what ever user enter a value from a text box and create a button to check the user entry value with a pacific column in Excel. I need your help regarding to that.

Ответить
Ravi Pertab
Ravi Pertab - 28.02.2019 19:51

A beginners question: Can you explain how the software knows that you have defined "c" to mean "cell"?

Ответить
George Kammar
George Kammar - 05.01.2019 22:21

This is the best excel channel out there. Good job man.

Ответить
Albert Cardona II
Albert Cardona II - 29.12.2018 19:50

You could of wrote " equals " & c.Value

Ответить
Ayappa svami songs
Ayappa svami songs - 25.07.2018 10:13

Hi,
Thank you for posting this vedio.
I have created one macro, please help me how can I put into loop
Ex : I have tabel of date am searching one condition if it is March I need print enteir row as it is.

Ответить
Graeme McGregor
Graeme McGregor - 20.07.2018 23:42

I need to see this a few times! For me it has gone from dead simple to pretty complex.

Ответить
Eky_UK_Gamer
Eky_UK_Gamer - 28.06.2018 03:36

Hi I really like your video content it has opened my eyes of what excel has to offer. But I have a question.
Is it possible to link several work sheets into one work sheet by the change of the background colour. I would presume it would be a macro. I work from 3 different style work sheets in the same workbook and enter similar data in all three but at the end of the month need to add only the red coloured data from each work sheet to the monthly sales work sheet which is time consuming and fraut with mistakes. So I was just wondering if it's possible. Can you help me please.

Ответить