Hi, all:
I have a problem
i have an account application , where i have to paste some informacion copied from excel . i have a code its do ..
sub mycode()
Range("C4:C14").Select
Selection.Copy
Application.WindowState = xlMinimized
end sub
1.-copy a range from excel
2.-minize excel application (Excel Window)
3.-in the current window(accountin program because excel was minized)
i paste de information with Ctrl + V (manually) and i press enter
(Manually).
4.-After, i return to excel and run "Mymacro" .. and follow doing again the firts steps. and so on
my problem is i have to do it like 200 times , and i would like to know if it could do with a code something like this:
sub Mynewmacro()
dim cont=0
do
Range("C4:C14").Select
Selection.Copy ' copy de range that i want
Application.WindowState = xlMinimized ' minize excel
with activeApplication ' account program
.paste ' paste the informacion in the blanks
end with
Press enter ' i dont know the code for press enter to accept the data
Application.WindowState = xlMinimized ' minize Acount program
cont=cont+1
loop until cont=200
end sub
however.... regarts MVP`S
I have a problem
i have an account application , where i have to paste some informacion copied from excel . i have a code its do ..
sub mycode()
Range("C4:C14").Select
Selection.Copy
Application.WindowState = xlMinimized
end sub
1.-copy a range from excel
2.-minize excel application (Excel Window)
3.-in the current window(accountin program because excel was minized)
i paste de information with Ctrl + V (manually) and i press enter
(Manually).
4.-After, i return to excel and run "Mymacro" .. and follow doing again the firts steps. and so on
my problem is i have to do it like 200 times , and i would like to know if it could do with a code something like this:
sub Mynewmacro()
dim cont=0
do
Range("C4:C14").Select
Selection.Copy ' copy de range that i want
Application.WindowState = xlMinimized ' minize excel
with activeApplication ' account program
.paste ' paste the informacion in the blanks
end with
Press enter ' i dont know the code for press enter to accept the data
Application.WindowState = xlMinimized ' minize Acount program
cont=cont+1
loop until cont=200
end sub
however.... regarts MVP`S