今天跟大家介绍一款红命令,删除全部制定艺术性, 假如这个零件里面有制定艺术性, 只要按一个这个图标就可以全部删除,按一下,然后这里的自定义就没有了。
粉丝8650获赞2.4万

删除红面面图标的方法,假如我要删除这个全面棉图标, 按这个三角形自定义,然后拖动这个图标就搞定了。


in this video we'll see how to work on the clear option when it's a clear option in the home tab if you see on the right hand side you get this option as clear option that is clear all clear formats, clear contains clear comments and hyperlinks how do you use it with help of macros? okay so i'll just remove this now if you see i have some data the sheet name is p under school clear the file name is xl vba okay and if you see there's some data given now i've tried to format that data with the background if you see a low background there's something as high pulling there's something as bold italic underline and there are some comments if you see it is also given here now if i want to remove this comments one by one if i want to remove the hyperlinks or if i want to remove the formats with delt of macros how do i do that so you can see the text which is returned in a1 to aden i'll use it with delt of this vba editor i'll open this vb editor at this place okay these are the names of the sheets so i'll minimize these sheets now okay these are the names of the models which are given the model name is speak clear if i want to clear some data here how do i do that so in that module i've created a procedure sub clear okay and how do i clear the things range 81 to 810 dot clear formats so if i say clear formats it will clear all the formatting not the text when i say range a1 to 18 dot clear comments so the comments which you can see those will be cleared all by 1 by 1 next if you see that's a range 81 to 18 hyperlinks so if you see in the cell number, four five and six i've applied some hyperlinks that would be removed from that place if i say range a one to eight and not clear everything will be cleared formats contains hyperlings everything okay so let us see that if i want to execute that step by step i can use f8 from a keyboard or shortcut or else in the debug toolbar you can see this option step into so i'll just click on this step into you see that step into click on this place now the very first thing is the formatting will be cleared from cell number 81 to 810 click on step into you see the formatting went away okay if i click on this clear comments again if i say step into the comment part have been gone away next is clear hyperlings you might think there are no hyperlings how we look clear i'll show you the hyperlings which are given if i go to this place okay if i click on the cell okay still a six cell number is having a hyperling if i click on that place okay the hyperling will open up a page that is some hyperling that is totalspoint com the same way page it will open i'll just close it so still the hyperling is still available but the automats have been gone away if i go back to my vb editor and if i click on this f8 option okay this high pullings also will be gone if i go back and check okay if i go and click on this place the i pullings are not there and they have been removed if i go back to that place again and if you see range a 1 to 8 and dot clear that means all the data whichever skin will be clear from that place if i click on step into and if you see the interdata has been gone away and finally i'll close this sub procedure which is given here right so i hope it's very very simple and easy like clear formats clear comments clear hyperlings and finally if you want you can just clear everything by putting clear option i hope you have understood that's all for this video。

大家好,我是连连老师,感谢朋友们对我的支持。呃,咱们今天来看一下这个关于相对引用和绝对引用。其实啊,我们上节课讲过的那个录制红的基本方法就是那两种,一种是先选择我们对应的这个单元格,然后录制啊,就是 是他可以针对所有的单元格来运行。另外一种呢就是说我们点了录制红之后再去选单元格再进行录制,那一种呢就属于一种绝对引用。 那么咱们今天所说的这个相对引用呢,其实和那个意思是一样的,我们先来看一下吧,这个相对引用,还有这个绝对引用, 如果说我想把这一列的这个内容啊选中之后给他啊改为还是改一个字体,改一个这个,嗯, 填充色啊,改一个字体的颜色,然后改一个填充色,再给他做一个加粗。选中之后我们找到咱们开发工具里面点击陆志红,然后这个名字叫红四啊,我不给他指定这个快捷键啊,快捷键了,他知道这个意思就可以了。 点击之后呢,我现在啊就开始选中他之后,找到我们开始里面加粗底纹,咱们颜色啊就改完了,我们找到开发工具里面停止录制,这个时候我想对应的这个, 我先把它恢复到正常的一个状态取消,然后无颜色啊,无这个填充色, 然后呢我选择后面的这个内容,我想把这两列生物和这个地理给他加一个颜色,但是我们就会发现一个问题啊,经过上一节课的那个讲解,我们点击红里面再选择红色,点击执行,他 还是对我们的 b 二和这个 b 五单元格,然后进行操作,这里面需要注意的一点啊,咱们用录制红的这种操作,然后操作的数据他是撤销不了的,所以说有这个重要的数据啊,在调试的时候一定要备份,一定要备份, 因为这种数据一旦损损坏的话,往后撤销是撤销不了的,他和我们平时的操作是不一样的。好,我们接着往下看,如果说我现在想要对应的啊,这个不管是点哪个单元格啊,点哪个单元格,他都会 添加颜色,我们知道我们可以用到咱们的这个先点录制啊,我把上节课的内容说一下,先点录制之后啊,不对,先选中啊,先选中之后再去点录制红,然后点完录制红之后啊,这现在是红, 点击确定再去找到开始里面这次没有选中的那个步骤了啊,点了撸着红之后就没有选中的步骤了,红色 黄色底纹加粗,好完事,然后我们点击停止录制,这个时候我选择这个啊,选择这个生物地理,找到红里面选择红五,点击直行这个就可以了啊。如果说我使用绝对引用进行录制呢,这样选中他之后,先把这个使用绝对相对于用啊, 啊,相对引用啊,使用这个相对引用给他选中相对引用,选中之后呢,咱们去点击这一个录制红,点了录制红之后呢,我们点击确定我再去选中啊, 先选后选其实都无所谓了,那么我们先那个先点啊,先点完之后再去选中,选中之后呢,让他记录咱们选中的这个操作,然后再去选择咱们当前 这个颜色加粗等等,再把对应的这个停止录制啊,给他点一下,点完之后我们再来看啊。我现在选中后面的 ef 两列,我再去点击咱们对应的这个红,选择红六点击执行。哎,后面的这个也可以,但是有一个问题,什么问题啊? 就是后面的这个明明选了两列,他只对一列起作用,然后我们再选择点击红之后选择一个红六,点一下直行 对一列起作用,我选三列也白选,然后选择一个红六点击执行。因为我刚开始录制的时候,我选择的是一列 啊,选择的是一列,这就是咱们相对引用的一个操作啊,也可以是选根据选择的这一列啊,选择的这一列就是,呃,选择的哪一哪一列里面,然后根据这一列进行添加格式,还有运行横啊,这是 是他们两个之间的一个区别啊,其实不如咱们上节课讲的那个方法好用,就是可以不使用相对饮用,就是控制。咱们先选单元格还是后选单元格区域啊?那么我们再来看啊, 如果我想单步去执行,还有一个问题,单步执行这个红袋码怎么来执行呢?那我想看一下他添加的这个过程行不行啊?也是可以的,我现在啊选中当前的这个区域,我想看一下咱们的这个红六,我让他单步执行,就是一步一步的看看他的这个 呃,是怎么来运运行的。我点击单部执行之后啊,这个红六里面代码还还挺多,其实我们只做了三个操作,一个是加底纹,一个是加这个字体的颜色,一个是加加粗啊,其实这代码还挺长的,我们然后我把这个窗口说 为了往右拽一下,拽一下之后呢,这里啊单步直行的情况下,直接从第一行代码开始,就是这个红六的第一行代码,但是我们自己怎么去单步执行一行一行的往下走啊?这里记住一个快捷键是 f 八键, 那么从哪里可以看到呢?我们调试里面这里有一个叫主语句,主语句呢就是一行一行的调试,我们现在啊点一下这个 f 八键,来看一下 f 八,哎,往下走一个,再往下走,然后再往下走, 再往下走,再往下走,往下走。好,这个先给他加了一个填充的底纹颜色,再往下走走啊,这一句话呢,我们就会发现哦,这一整段才是一个填充的这么多呀, 再往下走,这个呢是给他加了一个字体的颜色,我们就知道了这一段是一个添加字体颜色的,其实啊,我们后期学完之后,这个简化成三 三行就可以了,再往下,然后最后给他做了一个加粗的操作,到执行到最后一句,然后点 f 八之后这个命令就结束了,这是单步执行,我们能看到他一个运行的一个过程, 当然这种方式啊对于我们学习来说有一个很大的一个帮助,可能我们操作了十步,二十步,我们点完一下这个 啊红代码之后啊,他直接一步就给运行完毕了,但是我们用单步调试的过程中呢,我们就知道,哦,原来这一 这几行代码是加底纹的,原来这几行代码是加这个呃颜色的等等,还有底下的这个呢,是添加咱们这个加粗格式的,这样对熟悉代码呢,有一个呃,可以起到很大的一个帮助。另外呢,假如说我们某一天想录制, 呃,想自己写一段代码,但是这个属性,比如说设置颜色的啊,设置字体颜色的我忘记了,那么我们就可以通过录制红的方法获得这个代码,然后呢把这个代码复制到我们的那一个自己手写的那个代码里面去就可以了啊,通过录制红获取对应的这个代码啊, 那么如何去删除这些红呢?我现在把它先关掉。删除红呢?在我们开发工具下面也有一个选择这个红啊,然后我把这些红啊依次给他删除掉,选中之后点击删除 是,然后再点开删除红五,点击删除,点击四,好,依次类推,把红四也给删掉吧,只留红一和这个红二,我们再点开,看完工具,点开这个最左边的这个编辑器,我们再来看这个模块一,哎, 啊,只剩下这个红一和这个红二了,其他的都被删掉了,哎,我往下翻也没有了。 好,这是咱们这个关于红的一些基础的操作,其实红的用熟练了之后,对于我们后面编写代码有很大的一个帮助,但是呢, 我们只要是掌握了这几种这个录制的方法就可以,然后从下节课开始呢,我们就正式进入到我们手写啊代码的一个阶段。好,谢谢大家。