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.

TextBox solo Ingrese Numeros con separador de Miles

publicado

Hola a Todos,

Pues esta vez quisiera hacerles la consulta de como puedo hacer que un TextBox solo Ingrese Numeros con separador de Miles y 2 decimales (Ej. 2,300.00), tal vez sea muy simple pero no se como hacerlo:(

Gracias de Antemano.

Saludos

Featured Replies

publicado
Hola a Todos,

Pues esta vez quisiera hacerles la consulta de como puedo hacer que un TextBox solo Ingrese Numeros con separador de Miles y 2 decimales (Ej. 2,300.00), tal vez sea muy simple pero no se como hacerlo:(

Gracias de Antemano.

Saludos

Aqui una pequeña función para hacerlo, tienes que ponerlo en el evento "keypress" del textbox y pasarlo como parámetros el valor de "KeyAscii" y el objeto textbox

'-----------------------------------------------------------------------------

Public Function DigitOnlyDouble(ByVal pintKeyAscii As Integer, pTxt As String) As Integer

'-----------------------------------------------------------------------------

Dim NoDot As Boolean

If (Chr$(pintKeyAscii) = ".") Then

NoDot = InStr(1, pTxt, ".") = 0

Else

NoDot = True

End If

If (Chr$(pintKeyAscii) >= "0" And Chr$(pintKeyAscii) <= "9") _

Or (pintKeyAscii < 32) Or (Chr$(pintKeyAscii) = ".") Then

If NoDot Then

' it's OK

DigitOnlyDouble = pintKeyAscii

Else

DigitOnlyDouble = 0

End If

Else

DigitOnlyDouble = 0

End If

End Function

publicado
  • Autor

Hola, pero disculpa, donde o como pongo el evento? Otra cosa, al ingresar a la hoja, lo detecta como número?

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.