Add A comment every time a Cell is changed in Excel VBA - Code Included

  Рет қаралды 14,291

EverydayVBA

EverydayVBA

Күн бұрын

Пікірлер: 41
@Hello-Online-Students
@Hello-Online-Students 2 жыл бұрын
Thanks a lot sir,It's really helpful to me.I wanted this vba formula.God bless you.
@SuperHanme
@SuperHanme 4 жыл бұрын
Thank you for this great VOD
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 4 жыл бұрын
Thank you
@coogs9335
@coogs9335 7 жыл бұрын
Great job, thanks for sharing the knowledge, just what I needed. Keep up the great work boss!
@datadev1
@datadev1 8 жыл бұрын
Sweet example.for keeping track of value changes and who did them. I might also add date and time.
@dengvarona8364
@dengvarona8364 6 жыл бұрын
how do you add date & time
@poshady2
@poshady2 8 жыл бұрын
wonderful coding ,great idea
@vrr97
@vrr97 Жыл бұрын
Thanks brother , If i have to record comment in 6 columns only not for the entire sheet then how to change this code
@sontrinhvan1500
@sontrinhvan1500 4 жыл бұрын
Great idea!
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 3 жыл бұрын
Glad you think so!
@nd8961
@nd8961 4 жыл бұрын
What code is required please when you want to show a comment only with selected columns, like "A1: A250", "C1:250 ", "F1:250" & "J1:250". Not all columns and rows. Thanks
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 4 жыл бұрын
You have us the target.address or target row. With and if statement
@nd8961
@nd8961 4 жыл бұрын
@@EverydayVBAExcelTraining Thank you. I have used the Target, Intersect and specified the range .
@Kirill628
@Kirill628 3 жыл бұрын
Спасибо дружище
@MohanKumar-my1kw
@MohanKumar-my1kw 4 жыл бұрын
is there any possibility to update data which is existing in excel sheet, it should auto update in comment box as well
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 4 жыл бұрын
Yes that is doable but would be hard to explain here without fully know what you were trying to do
@MohanKumar-my1kw
@MohanKumar-my1kw 4 жыл бұрын
@@EverydayVBAExcelTraining i have a database in sheet one, and in 2nd sheet i done consolidated, in the consolidated sheet if i take mouse pointer particular cell comment box will popup, in that if example 10 employees are there in x department all the particular department employees names should auto update when i change in sheet 1.
@mzabaneh
@mzabaneh 5 жыл бұрын
Thank you for this great VOD, I worked with this on a PC excel and application.username returns the user name. but when I open this same xls on mac I get generic Microsoft Office user. I tried using Environ ("USR") which returns My login id. but that same environ does return the same this on PC. is there a way to write the code so it know a difference between a mac and PC. Help Please.
@mreyesa
@mreyesa 6 жыл бұрын
thank you very much , very useful, to follow up task
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 6 жыл бұрын
Thanks for the feedback
@Lu_Ca
@Lu_Ca 6 жыл бұрын
Hi, is there a way to add a dynamic comment when I select a cell? for example if I click on a cell with a date it will temporarely have acomment with the day of the week
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 6 жыл бұрын
You would nees to use on_change. So when a cell is changed you would need to read the target cell value and then insert info into the comment
@Lu_Ca
@Lu_Ca 6 жыл бұрын
thank you! I'll try it
@renedanos8877
@renedanos8877 5 жыл бұрын
Can I apply to all sheets in the workbook?
@irfanbayg
@irfanbayg 5 жыл бұрын
Need help. comment is added only when deleting a cell. i am using excel 2016.
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 5 жыл бұрын
You would use the on change event Where target.value = "" The challenge is figuring out what it was prior to deletion
@irfanbayg
@irfanbayg 5 жыл бұрын
@@EverydayVBAExcelTraining Thanks for your quick response. but i am novice in VBA so i could not get what you said. kindly elaborate.
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 5 жыл бұрын
Are you trying to get the value in the cell prior to deleting it? Or are you just wanting to know when a deletion happens? Can you paste your code and I can take a look
@irfanbayg
@irfanbayg 5 жыл бұрын
@@EverydayVBAExcelTraining thank you. i am just getting a blank comment with user name when deleting cell value. but when i change value, it is not recorded as in video.
@irfanbayg
@irfanbayg 5 жыл бұрын
i am using the code you provided in description.
@dengvarona8364
@dengvarona8364 6 жыл бұрын
how about adding a timestamp + the application user?
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 6 жыл бұрын
It would probably look like Application.user & "-" & now
@ryan21370
@ryan21370 7 жыл бұрын
Hi there, how can I set the range is C4:k1000? Thanks.
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 7 жыл бұрын
+Ryan wu Dim rng as range Set rng = range ("c4:k1000")
@ryan21370
@ryan21370 7 жыл бұрын
Thanks for your prompt response. When i apply it, the "for each in target" is error, and i change to " for each in rng", however, the exiting cell commend will add one more time for each time a cell edited. Can you please advice how to fix it? thanks.
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 7 жыл бұрын
it would most it would need to be for each cl in rng.cells OR for each cl in rng let me know if that helps
@ryan21370
@ryan21370 7 жыл бұрын
I tried that, after edit any cell in the range, the code "Elseif Not c.comment is nothing...." will run for all cells. Then all cells comment will add a new with current information in cell (did nothing with the cells), how to limit it run in the cell in editing?
@nielsjohannesen9209
@nielsjohannesen9209 4 жыл бұрын
@@ryan21370 Did you ever solve this?? I Have the same problem
@renedanos8877
@renedanos8877 5 жыл бұрын
Can the comment box list original content and new content
@taoli5497
@taoli5497 5 жыл бұрын
👍
Adding Text to Shapes or Comments using VBA or Marcos
7:41
EverydayVBA
Рет қаралды 7 М.
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 20 МЛН
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 27 МЛН
MAGIC TIME ​⁠@Whoispelagheya
00:28
MasomkaMagic
Рет қаралды 38 МЛН
CAN YOU DO THIS ?
00:23
STORROR
Рет қаралды 47 МЛН
Record Date and Time when Cell Value is Changed using Excel VBA
8:32
Dr. Todd Grande
Рет қаралды 53 М.
Copy Comments Automatically using Excel VBA
10:31
Dinesh Kumar Takyar
Рет қаралды 16 М.
Excel VBA Change Event on Single Cell
9:11
The Excel Cave
Рет қаралды 4,6 М.
How to make your Excel VBA code run 1000 times faster
16:55
Excel Macro Mastery
Рет қаралды 362 М.
Excel VBA IF THEN Statement (with ELSEIF & Looping in cells)
12:10
Leila Gharani
Рет қаралды 321 М.
Button Click Increment Cell Value By 1 VBA Excel
8:27
Haritha Computers & Technology
Рет қаралды 18 М.
How to Use Arrays Instead of Ranges in Excel VBA
10:20
Excel Macro Mastery
Рет қаралды 203 М.
Add Comments to Data from Another Worksheet Column
6:42
Dinesh Kumar Takyar
Рет қаралды 3,9 М.
Excel VBA FIND Function (& how to handle if value NOT found)
9:33
Leila Gharani
Рет қаралды 195 М.
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 20 МЛН