Excel VBA: Referring to Ranges & Writing to Cells (Range, Cells, Offset, Names)

Excel VBA: Referring to Ranges & Writing to Cells (Range, Cells, Offset, Names)

Leila Gharani

6 лет назад

345,316 Просмотров

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


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

Moises Tatis
Moises Tatis - 15.08.2023 19:28

I like how you teach. In fact, I'm enrolled in your Power Query Course. I'd assumed that you also have a Excel VBA course right? I'd like to learn macros.

Ответить
Maria Rib
Maria Rib - 06.07.2023 00:11

omg. I'm not getting much sleep. I keep learning more from you and instead of fixing the basic stuff I have written, I am thinking of other things I can do! Thank you :-)

Ответить
bloodline
bloodline - 23.06.2023 15:36

hello, how I select a range that is not defined?

Ответить
Khalid Alisawi
Khalid Alisawi - 07.06.2023 05:17

you are great, really it interesting video

Ответить
Mac User
Mac User - 10.04.2023 00:59

Hello, very interesting all your videos. Why don't you make videos in Spanish? It would expand your audience by many millions.

Ответить
Zaheem4u
Zaheem4u - 12.02.2023 20:56

Madam, Please share Video on ""Send bulk emails with dynamic table range without using filter function in VBA""

Ответить
Don Serpico
Don Serpico - 03.12.2022 17:38

Hey Leila, thanks for your videos. I need to loop through a range (one column) and 1) check if the cell contains a specific text/string and 2) if true, write the text in a new cell (same row). Which of your tutorials do you recommend to watch? Also, I didn't find the next video/lecture you mentioned at the end of this one. thank you in advance

Ответить
abhay kumar
abhay kumar - 23.10.2022 18:08

how to recreate an excel sheet using VBA, all content and formatting

Ответить
Naved Akhtar
Naved Akhtar - 12.10.2022 13:55

Hi, i need a help....how can i make range a varible insted of using Range("A1:D4") ...i want A,1,D,4 all must be daynamic variable
kindly support

Ответить
CarlosG
CarlosG - 03.09.2022 01:30

Thank you for teaching the basics!!!!

Ответить
Kabir Bharti
Kabir Bharti - 10.08.2022 04:27

Super🐊

Ответить
Gilazilla
Gilazilla - 06.07.2022 05:46

Excellent video. You are great instructor, and the video is top-notch in clarity.

Ответить
John Koay
John Koay - 26.06.2022 18:19

you are good.

Ответить
Rafael Núñez
Rafael Núñez - 17.06.2022 01:25

In Spanish-language there's not channel like this one. Great, you have a nice voice, even my native language is Spanish, i get all you explain. I just founded you. Congratulations "Desde américa Latina, Nicaragua. Saludos"

Ответить
Test 4Fun
Test 4Fun - 05.06.2022 14:16

How to do vlookup using VBA?

Ответить
ali z
ali z - 04.06.2022 19:45

بهترین استادی👏👏👏

Ответить
Allen Angelo Tangonan
Allen Angelo Tangonan - 19.05.2022 03:57

Hello can i get help with this. i'm finding for a string with "net.ipv6.conf.all.disable_ipv6 =" where if it will be 0 value will get msgbox "no" but if value is 1 will get msgbox"yes" thank you.

Ответить
1964ColdWar
1964ColdWar - 01.04.2022 20:38

Just figured out my error: I named my module Cells which started this whole mess! (I left my question for anyone else's benefit)>>>>Thanks for the work you put into this video Leila, quick question: When I tried to use your second example: cells(1,1)="1st" it gave me an error: Compile error: Expected variable or procedure, not module. It's like vba isnt recognizing that expression because it's not even suggesting anything when I type the "cells(" part....... Thanks for any help.

Ответить
Mondayalready
Mondayalready - 25.03.2022 05:24

How do you reference named ranges that's not in the active sheet? I tried putting sheets("sheetReferenece") before the range method but I always get a "Application-defined or object-defined error".

Ответить
AABBCC
AABBCC - 12.03.2022 13:18

Hi there, what is the best way to store, catalog, index VBA code/ projets codes...

Ответить
sherline jean baptiste
sherline jean baptiste - 07.03.2022 01:58

Hi Leila! How can I used the same macro in one excel file for the next column without changing the numbers of the other columns while I m using the same spreadsheet day by day.
Let’s says the column are for day 1,2,3 and so one.

Ответить
Shwan Ibrahim
Shwan Ibrahim - 21.02.2022 17:34

thanl you so much

Ответить
phiberoptik
phiberoptik - 02.02.2022 22:51

Not sure if you offer help to folks but here goes. I have a range of values I created a dynamic distribution chart for that updates as I enter values, that range values from 2 through 12. The chart gives me the total number of occurrences each time any of the values appear. The total number of rows with these values is 5000. I want to create a supplemental chart that tracks just the last 50 entries in row order as data is entered. This supplemental chart will always give me the last 50 rows of data. Is the presentation posted here the best method to achieve those results? Thanks for any advice. Great value here.

Ответить
david deval
david deval - 23.12.2021 21:03

Hello Leila sorry to bother but the following command doesn't work for me : Range(“A” & 6,”C” & 6)= “6th”
I got run time error 1004. What i am doing wrong ?
Thanks for your help

Ответить
matthew moses
matthew moses - 16.11.2021 20:55

I have a question, Can you concatenate a range first Cell reference?

Ответить
Amir Hossain Farshidfar
Amir Hossain Farshidfar - 09.11.2021 01:50

would you please describe how to select and choose different columns wich are not next to each other at once (for ex as if you want to enter and refer two different ranges in separated columns in a linest function at function tab)

Ответить
ABDULLAH ALKLBANI
ABDULLAH ALKLBANI - 20.10.2021 23:19

Amazing 👏 that was full comparhansive explanation 👏
I appreciate that efforts from your side


This is was very helpful

Ответить
Mario J Restive
Mario J Restive - 05.10.2021 02:29

Very nice presentation
Look forward to your course

Ответить
andydidyouhear
andydidyouhear - 24.09.2021 16:15

Great lecture, easy to follow.

Ответить
Joe Campanini
Joe Campanini - 16.09.2021 18:53

Outstanding presentation. Thank you.

Ответить
Eduardo
Eduardo - 03.09.2021 00:00

Thanks!

Ответить
Abumalik
Abumalik - 06.08.2021 08:56

impressive teaching ability , right pace and right details . subscribed !.

Ответить
Dutch Gemini
Dutch Gemini - 04.08.2021 11:30

VBA allows to specify ranges using the short notation with square brackets instead of the Range() or Cells() property. For instance 'Range("A1").Value' can be written in short as '[A1].Value'. This is also true when using areas, for instance [A2:C2].Value = "2nd", and named ranges such at [LastOne].Value = "10th".

Ответить
Braaap TV
Braaap TV - 01.08.2021 05:44

its not working for me Range("A"&7)="7th" - Syntax error

Ответить
Angel Manuel Otero Rodríguez
Angel Manuel Otero Rodríguez - 15.07.2021 14:51

She is the best

Ответить
Prem Kumar
Prem Kumar - 22.06.2021 14:45

Used this techniq and solved a issue for which i am looking for a solution in long time. Keep rocking😎👏✌

Ответить
Sindhu Sudhakaran
Sindhu Sudhakaran - 14.06.2021 07:16

so well explained. Thank you

Ответить
Raj Kumar
Raj Kumar - 22.04.2021 09:22

HOW TO COPY SELECTIVE CELLS FROM ONE SHEET AND COPY TO SELECTIVE CELLS OF ANOTHER SHEET?

Ответить
Luis Garcia
Luis Garcia - 10.04.2021 17:46

You explain concepts very well and it is easy to follow. Thanks

Ответить
Steven Nye
Steven Nye - 08.04.2021 04:22

excellent review!

Ответить
Andy Ronaldy
Andy Ronaldy - 02.04.2021 05:07

on the sample you gave, why you can go to fill after last row? I dont see you out Last Row coding

Ответить
Vangelis Bafman
Vangelis Bafman - 24.03.2021 18:28

Vangelis Nice

Ответить
ISA.RAHBAN
ISA.RAHBAN - 16.03.2021 17:30

thank you very much

Ответить
ariel zabate cuizon
ariel zabate cuizon - 14.03.2021 04:01

Hi, from your example: Range("A" & 6, "C" & 6 ), Can I select multiple cells but using cells(r,c) example cells(1,1) and cells(1,6) . I want to select only cells 1,1 and cells(1,6). how to do it?

Ответить
Rod
Rod - 20.02.2021 01:39

Your videos are very informative. How do I reference entire rows as variables? For example if I am using them in a For/Next loop, instead of typing Rows("9:9").select? I can't figure out how to put a variable J in place of the 9's. Thank you.

Ответить
hossein hosseinpoor
hossein hosseinpoor - 06.02.2021 14:40

thanks thanks thanks

Ответить
Yoryo Power
Yoryo Power - 04.02.2021 16:23

Thank you.

Ответить
Michael Krekker
Michael Krekker - 04.02.2021 16:14

Hey, maby Are you know, how can I use the Filter Function, but I want to fix one Cell of description, and this description I have to show always, if I use the filter function?

Ответить
Sujit Roy
Sujit Roy - 01.02.2021 22:05

How to fit web cam live image fit in to excel sheet in vba..Madam pls help me in this topic

Ответить