Saltar navegación

Activa JavaScript para disfrutar de los vídeos de la Mediateca.

Módulo Aplicaciones Ofimáticas - Trabajando con Word - Vídeo 4 - Contenido educativo

Ajuste de pantalla

El ajuste de pantalla se aprecia al ver el vídeo en pantalla completa. Elige la presentación que más te guste:

Subido el 6 de octubre de 2024 por Mario S.

56 visualizaciones

Utilizando más herramientas del UserForm

Descargar la transcripción

well in this new video we are going to continue working with macros and with the forms 00:00:00
when you make a macro a form when you come to visual basic and make a form 00:00:09
like the one we have seen in the previous video when we save this is worth this document remember 00:00:16
that you are in word then you have to save this document I will always go to the file to save as 00:00:22
y en el tipo de documento tenéis que ponerle documento habilitado con macros de Word. Si 00:00:29
dejáis la opción que viene por defecto, que es el docx, que es un documento de Word, todas las 00:00:36
macros que hayáis hecho, todas las macros que van incorporadas a ese documento, se van a borrar, 00:00:42
¿vale? Entonces os tenéis que acordar siempre de documento habilitado con macros de Word, ¿vale? 00:00:49
notice that there are also templates enabled with macros, that is, the macros can be used in many 00:00:55
in many places, but here this second option document enabled with word macros that if 00:01:00
you look at the extensions doc and m is worth the macro not xd of what is the x this is worth doc m 00:01:08
that is that it has the macro ok and once saved if you re-open it it can be for example 00:01:18
to see if now it happens if I come here and I give it to room well here we put hello 00:01:28
happy Sunday click on me well here it does not work if you see that it does not work that is because for security 00:01:37
deactivates the macros then if you see that the macros do not work but you have them here what 00:01:58
you have to do is come to word and in this tool that puts security of macros you click 00:02:06
and here the different options come out you see then it says disable all macros without 00:02:14
notification disable all macros with notification you have to have selected 00:02:19
the one to enable all macros ok and you accept sometimes word for security disables them 00:02:25
then you come to macro security and you enable them ok now once said this we are going to continue 00:02:32
doing some little test with the theme of the maps then look I am going to disable these two 00:02:41
these two objects these two text boxes to disable them we create that we use the 00:02:50
enable then we put it to false and I put it to false there you are in such a way that when I 00:02:59
execute when I start the user phone I cannot write in either of the two ok ok then 00:03:11
what we are going to do now is to continue playing with options of these we are going to put 00:03:21
first this one in the box is worth then this one has here a check box 1 that as we have 00:03:26
been doing you always see that it has its property here capture here I could change 00:03:34
the text then we are going to enable the name for example ok and I am going to put the name 00:03:41
as always in the name and then from the code to make reference to that field then here 00:03:51
we are going to put chk as a check name that is why I put chk of check ok and we are going to do another 00:03:58
control c control v there you are that we are going to call chk 00:04:10
chk last name ok this has gotten smaller and I don't know why we are going to put it well 00:04:23
that everything looks good ok then here instead of enabling the name we are going to go to the caption and I am going to 00:04:37
say that it enables surnames then what is it about because when I click on one of these 00:04:42
options, one or all or none of these fields are enabled, okay if I click on enable 00:04:52
name because I will be able to write the name if I click on enable or enable the 00:05:02
box of the last name because I will be able to write the last name if I click on both 00:05:08
because I can write on both and if I remove the click of the two well then I cannot write in 00:05:12
any ok then the first thing I have to know is how I can ask if there is a if this is 00:05:17
activated or not then if you look there is a property that is value ok then in this case it is not 00:05:23
is a text it is not the value is false but if we put it to true of course what happens 00:05:31
is that it is activated then when this option is activated is that this property is valid 00:05:40
so I already have everything to make my code ok then here what we are going to control 00:05:46
is the event of clicking here on top or clicking here on top ok then we are going to 00:05:53
come first to this for example I double click and it already takes me to the chk click function 00:06:00
name ok because it is the object that we had selected and in which we have double clicked 00:06:06
then what am I going to say here because we are going to say first a question if what there is in chk 00:06:11
name point value value sorry is equal to true what does it mean because you have to activate 00:06:18
this picture ok and how we had called that picture because the txt name is worth it that is why it is very 00:06:31
very important to put the names well then here we are going to put a den ok remember 00:06:39
that that always goes like this and then if it is equal to true then we tell it that txt name point 00:06:46
what property we have used to disable that object of the name in eibol because in 00:06:57
in eibol I tell it to put it to true, it activates it and what happens if when I click here it 00:07:05
is to deactivate it because then chk name point value will be equal to false then how am I going to 00:07:19
do that with the s and this is going to be txt name point in eibol to which it will be equal this well to false 00:07:26
ok ok and this would be my first function ok then I ask a question and enable or disable 00:07:35
depending on the value depending on whether it is activated or not activated ok ok we are going to select the 00:07:44
second now then I double click the same as before and here first I am going to put the value to false 00:07:54
to leave it as it was at the beginning false ok it is already disabled and now I am going to 00:08:05
take all this text ok all these commands and I am going to copy them against the c 00:08:11
against the v and what do I do now I do not want to enable the chk name ok if I leave it like this we would be 00:08:18
working on this object now what I want is to enable the text box of the last name that 00:08:24
was called ch chk ok the question would be about chk last name and what I want to change is the txt 00:08:30
last name ok and here the same we are going to change only this ok then look at how I have the chk last name 00:08:41
on the one hand is worth the name on the other and we are going to see if this works for us or not well we have 00:08:58
our form I can not write in either of the two because there is no enabled enabled 00:09:04
the enable name is now already once it is enabled it lets me write if I disable it you see 00:09:10
that it puts it in light gray that is because it no longer lets me write I enable it again I can 00:09:19
I will write again I can enable here I have done something wrong let's see 00:09:25
pura txt last name 00:09:30
which is what I have done wrong that it is not called last name for sure 00:09:36
last name in plural ok let's put last names and last name and we continue 00:09:42
ok then when I have surnames enabled it lets me write when I disable it it no longer 00:09:52
leaves me ok then this is very comfortable when doing things like this then we can 00:09:57
press it and everything works as we have been doing in the previous example ok 00:10:03
well and this would be this type of objects now this week that enters because in class we will make 00:10:11
un ejemplo como este vale vale pues este vídeo lo dejo aquí un saludo hasta ahora 00:10:18
Idioma/s subtítulos:
en
Autor/es:
Mario S.
Subido por:
Mario S.
Licencia:
Dominio público
Visualizaciones:
56
Fecha:
6 de octubre de 2024 - 18:52
Visibilidad:
Público
Centro:
IES VILLABLANCA
Duración:
00′ 07″
Relación de aspecto:
1.78:1
Resolución:
1920x1080 píxeles
Tamaño:
27.39 MBytes

Del mismo autor…

Ver más del mismo autor


EducaMadrid, Plataforma Educativa de la Comunidad de Madrid

Plataforma Educativa EducaMadrid