Normas del foro
Bienvenido(a),
Visitante
. Favor de
ingresar
o
registrarse
.
¿Perdiste tu
email de activación?
- Noviembre 18, 2008, 04:55:25
Visita:
Articulos
-
Juegos Gratis
-
Da Foros
Comunidad Underground Hispana
|
Programacion
|
Programación
|
Visual Basic y Net
(Moderador:
ANYD00M
) | Tema:
Visual Basic + EXCEL! ..
0 Usuarios y 1 Visitante están viendo este tema.
« anterior
próximo »
Páginas:
[
1
]
Autor
Tema: Visual Basic + EXCEL! .. (Leído 290 veces)
The Bonus
Colaborador
Desconectado
Mensajes: 740
Visual Basic + EXCEL! ..
«
en:
Diciembre 12, 2006, 03:07:42 »
Hola como andan?? Espero que bien
Aver si alguien sabe esto:
Necesito hacer un programa en VB que haga lo siguiente..
Yo tengo un
textbox
llamado "txt1" y un
boton
"bot1", como hago para que cuando presiono el boton, el texto que tenia el textbox (text1.text) se pase a una planilla de excel pero a
UNA DETERMINADA CELDA
, ejemplo la celda
"E 12"
.
Es decir, si yo escribo en el txt1 la palabra "HOLA", que en excel, en la celda "E 12" se escriba "HOLA".. como lo hago
??
Salu2
Karpo
En línea
El ancho de tu firma excede el tamaño máximo permitido por el foro, porfavor redúcela.
[http://img50.imageshack.us/img50/9937/hack7tw.gif[/img]
"...No sabiendo que era imposible, fue y lo HIZO..."
Antes de postear busca, si no encuentras, usa google, si tampoco lo encuentras alli, buscalo entre los msg's del foro y si no tienes resultado postealo en el foro!
NorK
SI NO AI SITIO PARA LA DERROTA LO MEJOR ES ENTRENAR.
Moderación
Habitual
Desconectado
Mensajes: 273
Respeto al sabio por sabiduria o por torpeza.
Re: Visual Basic + EXCEL! ..
«
Respuesta #1 en:
Diciembre 13, 2006, 02:36:22 »
Buenas, pues para que el projecto se ponga directamente en la celda que quieras tendras que leer y canviar la memoria del programa (Excel).
La verda esque nose mucho sobre el excel asi que no te podre ayudar tanto como quisiera pero espero que con esto te sea , por ahora, suficiente.
Chao !
En línea
Necesitas ser usuario para ver los enlaces
Crear Usuario
Hacer Sesion
hackmexsatelite
Visitante
Re: Visual Basic + EXCEL! ..
«
Respuesta #2 en:
Diciembre 13, 2006, 04:10:30 »
Este es un vbs que me encontre es de matrix
es casi lo mismo que vb, solo debes de cambiarle unas cosas
Código:
On Error Resume Next
Set objXL = WScript.CreateObject("Excel.Application")
objXL.Visible = TRUE
objXL.WorkBooks.Add
objXL.Cells(10 , 4).Value = "Loading..."
For col = 1 to 30
objXL.Columns(Col).ColumnWidth = 3
Next
objXL.Range("A10:S10").Select
objXL.Selection.Font.Bold = True
objXL.Range("A1:AZ26").Select
objXL.Selection.NumberFormat = " @"
objXL.Selection.Interior.ColorIndex = 1
objXL.Selection.Interior.Pattern = 1 'xlSolid
objXL.Selection.Font.ColorIndex = 4
objXL.Cells(10 , 4).Value = ""
objXL.Range("A1:A1").Select
For xxx = 1 to 15
For iii = 1 to 29
Randomize timer
caracter = Int(Rnd * 255)
if iii = 10 then
Select Case xxx
Case 1
objXL.Cells(iii, xxx).Value = ""
If iii > 3 then
objXL.Cells((iii - 3), xxx).Value = ""
End if
Case 2
objXL.Cells(iii, xxx).Value = "M"
If iii > 3 then
objXL.Cells((iii - 3), xxx).Value = ""
End if
Case 3
objXL.Cells(iii, xxx).Value = "A"
If iii > 3 then
objXL.Cells((iii - 3), xxx).Value = ""
End if
Case 4
objXL.Cells(iii, xxx).Value = "T"
If iii > 3 then
objXL.Cells((iii - 3), xxx).Value = ""
End if
Case 5
objXL.Cells(iii, xxx).Value = "R"
If iii > 3 then
objXL.Cells((iii - 3), xxx).Value = ""
End if
Case 6
objXL.Cells(iii, xxx).Value = "I"
If iii > 3 then
objXL.Cells((iii - 3), xxx).Value = ""
End if
Case 7
objXL.Cells(iii, xxx).Value = "X"
If iii > 3 then
objXL.Cells((iii - 3), xxx).Value = ""
End if
Case 8
objXL.Cells(iii, xxx).Value = ""
If iii > 3 then
objXL.Cells((iii - 3), xxx).Value = ""
End if
Case 9
objXL.Cells(iii, xxx).Value = "H"
If iii > 3 then
objXL.Cells((iii - 3), xxx).Value = ""
End if
Case 10
objXL.Cells(iii, xxx).Value = "A"
If iii > 3 then
objXL.Cells((iii - 3), xxx).Value = ""
End if
Case 11
objXL.Cells(iii, xxx).Value = "S"
if iii > 3 then
objXL.Cells((iii - 3), xxx).Value = ""
End if
Case 12
objXL.Cells(iii, xxx).Value = ""
If iii > 3 then
objXL.Cells((iii - 3), xxx).Value = ""
End if
Case 13
objXL.Cells(iii, xxx).Value = "Y"
If iii > 3 then
objXL.Cells((iii - 3), xxx).Value = ""
End if
Case 14
objXL.Cells(iii, xxx).Value = "O"
If iii > 3 then
objXL.Cells((iii - 3), xxx).Value = ""
End if
Case 15
objXL.Cells(iii, xxx).Value = "U"
If iii > 3 then
objXL.Cells((iii - 3), xxx).Value = ""
End if
End Select
Else
If Not iii = 13 and iii < 26 then
objXL.Cells(iii, xxx).Value = Chr(Caracter)
If iii > 3 then
objXL.Cells((iii - 3), xxx).Value = ""
End if
Else
if not iii = 13 then
objXL.Cells((iii - 3), xxx).Value = ""
end if
end if
End if
Next
Next
Set objXL=Nothing
Espero que te sirva.
Un saludo a todos ya que no me paso tan seguido por vb, ahora me
dedico a programar en php y asp xD
Tratare de postear mas seguido, un saludo a $N!PER y a todos los demas
Saludos
En línea
Páginas:
[
1
]
Comunidad Underground Hispana
|
Programacion
|
Programación
|
Visual Basic y Net
(Moderador:
ANYD00M
) | Tema:
Visual Basic + EXCEL! ..
« anterior
próximo »
Ir a:
Por favor selecciona un destino:
-----------------------------
Foros De Consulta General
-----------------------------
=> Novedades
=> Dudas, Comentarios Y Sugerencias
=> Top 100
=> Off-Topic
=> Revista E-Zine
===> Noticias
-----------------------------
Phreaking, Hacking y Seguridad
-----------------------------
=> HacK GeneraL
===> Ingenieria Inversa
===> Encriptacion, Cryptografia
===> TV HACK
===> Cursos y Ezines
=====> Trucos Internet
=====> Textos Hacking
===> Defacing
=> Seguridad
=> Phreaking
===> Moviles
=> Bug y Exploits
===> Directorio de Exploits
=> Wargames, Retos Hack
-----------------------------
Hack Novato
-----------------------------
=> Hack para newbies
=> Todo Messenger
=> Troyanos y virus
-----------------------------
Sistemas Operativos
-----------------------------
=> Windows y otros sistemas operativos no libres
===> Problemas Tecnicos Windows
=> Sistemas operativos libres.
===> GNU/Linux
===> Manuales y Tutoriales
===> Descargas
-----------------------------
Programacion
-----------------------------
=> Programación
===> Programación Basica
===> Otros Lenguajes
===> Visual Basic y Net
===> ASM
===> Programacion Shell
===> Perl
===> Carbide C/C#/C++
===> Batch
===> SQL
=> Programacion para webmasters
===> Consultas Generales
===> Php
===> Html, XHTML, CSS
===> Java - Java Script
===> CMS O Scripts Pre-Fabricados
===> Posicionamiento en buscadores
-----------------------------
Artes Graficas
-----------------------------
=> Diseño Grafico
===> Battle Arts
===> Flash
===> Tutoriales
===> Galerías
===> Software
-----------------------------
Area Tecnica
-----------------------------
=> Networking & Wireless
=> Overclocking, Refrigeracion y demas
=> Hardware
===> Biblioteca Tecnica
=> Electronica Y Robotica
-----------------------------
Programas
-----------------------------
=> Software
===> Configuraciones de software
===> Pedidos de software
=> Cracks & Serialz
=> P2p, Bittorrent, Elinks
-----------------------------
Multimedia Y Divx
-----------------------------
=> Juegos PC Y Consolas
===> Dudas ayudas y comentarios de juegos
===> Pedidos de juegos
===> Juegos de Consola
=> Mp3
=> Multimedia
=> Peliculas Divx
-----------------------------
Entretenimiento Y sitios de interes
-----------------------------
=> Juegos, Humor y Adultos. (Diversión)
===> Adultos
=> Paginas Webs Recomendadas
=> Videos
Powered by SMF 1.1.7
|
SMF © 2006-2007, Simple Machines LLC
Loading...