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.

Asignar Imagen a Formulario en tiempo de creación.

publicado

Hola a Tod@s,

Espero me puedan ayudar,... al intentar insertar una imagen a un formulario en tiempo de creación por medio de VBA, me dice que el objeto no esta disponible.

Sub CreaForm()
Dim MiNewForm As Object
    Set MiNewForm = Application.VBE.ActiveVBProject.VBComponents.Add(3)
    With MiNewForm
       .Properties("Height") = 300
       .Properties("Width") = 300
       .Name = "Prueba"
       .Properties("Caption") = "Prueba_LBV"
       .Properties("BackColor") = RGB(0, 255, 0)
       .Properties("Picture") = ActiveWorkbook.Path & "\Imagen1.jpg" ' .... AQUI ME SALTA EL ERROR?
       .Properties("PictureSizeMode") = 1
    End With
End Sub


 

 

Alguna idea?

Saludos.

Imagen a Formulario_LBV.xlsm

Imagen1.jpg

Featured Replies

publicado
  • Autor
Hace 4 minutos , avalencia dijo:

Hola

Cuando se trata de la Propiedad "Picture", al agregar un objeto la forma cambia:


Set .Properties("Picture").Object = _
     LoadPicture(ThisWorkbook.Path & "\Imagen1.jpg")

Saludos

Abraham Valencia

Excelente!!!

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.