xla

Shantaram_c

New Member
Joined
Nov 6, 2003
Messages
20
How can i create xla for follwoing code
Sub sd()
Workbooks("A&M CONS-TMR-NOV04.xls").Worksheets("CONS-TMR-NOV04").Activate

max_row = 7
v_continue = True
Do While v_continue = True
cell_name = "j" & max_row
'MsgBox (cellname)
Range(cell_name).Select
If Len(Trim(ActiveCell)) = 0 Then
v_continue = False
Else
max_row = max_row + 1
End If
Loop
Workbooks("980.xls").Worksheets("sheet1").Activate
tmax_row = 9
v_continue = True
Do While v_continue = True
cell_name = "d" & tmax_row
'MsgBox (cellname)
Range(cell_name).Select

If Len(Trim(ActiveCell)) = 0 Then
v_continue = False
Else
tmax_row = tmax_row + 1
End If
Loop
Dim t, i
For i = 10 To tmax_row
Workbooks("980.xls").Worksheets("sheet1").Activate
cell_name = "e" & i
celselect = Left(Range(cell_name).Value, 20)

For t = 7 To max_row
Workbooks("A&M CONS-TMR-NOV04.xls").Worksheets("CONS-TMR-NOV04").Activate
cell_name = "b" & t


Range(cell_name).Select
If Range(cell_name).Value = celselect Then


Selection.Font.Bold = True
Selection.Font.ColorIndex = 3
cell_name = "A" & t
Range(cell_name).Value = 1
End If




Next t



Next i

End Sub
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top