Question : How to get CommandArgument from ViewState?

Hi,

Is there a way to get the CommandName and CommandArgument from ViewState?

I know you can do a myLinkButton.CommandArgument, but can it be grabbed from ViewState as well?

Thaks for your time.

Answer : How to get CommandArgument from ViewState?

Forget former post, this is good

Hi Sub Time()
Dim myWB as Workbook
Dim myWS as Worksheet
Dim cel As Range
Set myWB = Workbooks("Name.xls")
Set myWS = myWB.Worksheets("Sheet1")
For Each cel In MyWS.Range("B2", myWS.Cells(Rows.Count, "B").End(xlUp))
    cel.Value = Val(cel.Value)
    cel.NumberFormat = "00\:00\:00\:00"
    cel.Value = cel.Text
Next cel
End Sub
Random Solutions  
 
programming4us programming4us