Create VBA Macro Button to Clear Specific Cells | Multiple Ranges | Keep Formatting | All  Sheets

Create VBA Macro Button to Clear Specific Cells | Multiple Ranges | Keep Formatting | All Sheets

Chester Tugwell

2 года назад

41,363 Просмотров

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


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

Romeo Dario Chiu
Romeo Dario Chiu - 26.08.2023 03:56

Sir Chester, good day. I wanna ask you why it can't be saved and everytime I open a workbook, s gone. Thank you.

Ответить
JaskC700
JaskC700 - 22.08.2023 16:55

Very Helpful!! Especially the enable macros function.

Ответить
Damuel Esington
Damuel Esington - 07.08.2023 10:18

You are a lifesaver thank you

Ответить
Gary Leskiw
Gary Leskiw - 02.06.2023 20:26

Very clear, and allowed me to clear multiple and disparate entry cells in a sheet by using a named range (perhaps add named range as an example). However, I could not get it to work when some of the entry cells were merged cells. Looking for this solution as my sheet is an entry form where different width fields are used on each row (so changing column width to avoid merging is not a great option)

Ответить
raserex
raserex - 24.05.2023 18:56

Thanks for this! Now I''m trying to clear a range of cells. So, I've done this and I'm actually clearing a column of data. The data leaves the cells in the row, but I've also got a duplicate conditional format in that column. When I clear the data, the cells turn pink, almost as if the "no data" cells are duplicated. Then, when I manually highlight those cells and press the "delete" key, the cells return to white as normal. When I check the cells then, they still have the duplicate rule on them. I can't figure out why that row is turning pink and furthermore how to correct this. Here is the code I've set to hopefully return that column to no fill. Range("A4:A39").Interior.ColorIndex = xlNone Can you help? FYI, My sheet would most resemble the Non-consecutive cells portion of this tutorial.

Ответить
Ivan Garza
Ivan Garza - 23.05.2023 23:23

You learn something new every day. This was very useful!! It’s gonna make my life easier at work.

Ответить
XVZ
XVZ - 16.05.2023 03:44

Thanks, your vid is really simple, helpful, and easy to understand. Subscribed

Ответить
kartikforanimal
kartikforanimal - 03.04.2023 20:45

Kindly release a video for clearing data of merged cell

Ответить
Pasco Ready Mix
Pasco Ready Mix - 07.03.2023 18:40

Is there a way to clear merged cells as well?

Ответить
Edward
Edward - 21.02.2023 19:57

Thanks sir

Ответить
Dhiandra Rhatnanita
Dhiandra Rhatnanita - 27.01.2023 14:50

Thank you!

Ответить
Aakif Ahmed
Aakif Ahmed - 20.12.2022 12:47

Hi i have a doubt

Can we have a button which can Clear all the contents of the multiple sheets present in the same workbook

If yes

Can help me with the VBA code

Ответить
Alex Rosén
Alex Rosén - 28.09.2022 09:35

Very useful! Many examples which can be used in different real life scenarios. Thanks

Ответить
Al Parkson
Al Parkson - 15.09.2022 00:52

When I try this, I get a Compile Error - Wrong number of arguments or invalid property assignment 😌

Ответить
DemonSpeed797
DemonSpeed797 - 03.09.2022 16:35

This was great thanks so much.. Is there a way to get the code to recognize merged cells? Thanks

Ответить
sj
sj - 21.07.2022 19:46

Very good

Ответить
Ron Bemis
Ron Bemis - 09.07.2022 20:32

When you looped through all the worksheets and cleared each one, why didn't the button disappear too?

Ответить
Hasan Alzahrani
Hasan Alzahrani - 09.07.2022 02:33

Thanks Chester. By the way, did you know that you don't have to type the parentheses after typing the title of the subroutine because the VBA editor will take care of that.

Ответить
Iván Cortinas
Iván Cortinas - 08.07.2022 17:38

Thank you Chester. That's a very useful macro-set.

Ответить