Saltar al contenido
View in the app

A better way to browse. Learn more.

Ayuda Excel

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

que al iniciar un USER FORM dentro de un textbox aparezca la fecha

publicado

Tengo un archivo que no puedo subir pk contiene muchisimos datos y no procede pero os paso lo que pueda de capturas

image.png.a64dffc779cb4159bb7f0d22b8dfe8eb.png

 

image.png.a07f4cbff46c8c4e3f58d22b72a7830c.png

 

image.thumb.png.24abaa08b058f123238bdb77c677108c.png

 

para que en el TextBox  aparezca la fecha de hoy al darle userform.show

image.png.104aaced7eaa0cf1a1fb1af801762f85.png

 

 

 

Featured Replies

publicado

Hola @patriciomates!

Intenta de esta manera (modifica el formato de fecha según te convenga)

Private Sub UserForm_Initialize()
With Application
    .ScreenUpdating = False
    .DisplayAlerts = False
End With

Textbox1 = Format(Date, "DD/MM/YYYY")
...'más el código que tu tengas

With Application
    .ScreenUpdating = True
    .DisplayAlerts = True
End With
End Sub

Suerte!

Editado el por tierra_pampa

publicado

Hola de nuevo @patriciomates!

También tenía esta forma en algún formulario hecho;

Private Sub UserForm_Initialize()
With Application
    .ScreenUpdating = False
    .DisplayAlerts = False
End With

TextBox1 = DateValue(Now)

...'más el código que tu tengas

With Application
    .ScreenUpdating = True
    .DisplayAlerts = True
End With
End Sub

Para cuando toque grabar en la planilla (creo que es tu problema del otro post) puedes intentar así:

hoja1.cells(1,1) = Cdbl(Textbox1.Text)

Suerte!

publicado
  • Autor

No se exactamente que sucede pero Cdbl dice que no coinciden los tipos Cstr no hace nada, voy a empezar a buscar una macro que cambie el formato de las celdas por separado al proceso de grabación de datos

 

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.