ME MAKE A ROUTINE / LOOP / FOR NEXT
FOR MANIPULATION OF LINES AND COLUMNS IN EXCEL
THROUGH A MACRO! please
ME MAKE A ROUTINE / LOOP / FOR NEXT
FOR MANIPULATION OF LINES AND COLUMNS IN EXCEL
THROUGH A MACRO! please
What range of cells? What manipulation do you want? AND PLEASE DON'T SHOUT!
Bernie Deitrick
Excel MVP 2000-2010
HERE AN EXAMPLE OF HOW TO HANDLE LINES
Sheets ( "lotofacil"). Select
vlin = 1
While the Range ( "a" & vlin) <> ""
vlin = vlin + 1
loop
HERE COLUMNS
vescala = "cdefghijklmnopq"
'FORMAT 02 HOUSES
For i = 1 to 9
Range (Mid (vescala, i, 1) & vlin) .Select
Selection.NumberFormat = "@"
Range (Mid (vescala, i, 1) & vlin) = Format (Range (Mid (vescala, i, 1) & vlin), "00")
Next
HOW DO YOU DO?
Does this help?
Please Login or Register to view this content.
hello john
THE EXCEL COLUMNS HE BELIEVES IN NUMBERS ??
A = 1
B = 2 .....
Yes. 3 to 17 is c to q
You don't need to loop to find the last row, and you don't need to convert cells to text to get them to display as 00 format:
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks