Microsoft
Software
Hardware
Network
Question : macro question which columns is the data changing
Hi Experts
Is the edit 1 macro chnaging the 5 to 6 in column G or am i totally mistaken.....which column is it.
Sub Edit_1()
Application.ScreenUpdating
= False
Dim rngData As Range
Dim lngIndex As Long
Dim varData
Set rngData = Intersect(Range("G:G"), ActiveSheet.UsedRange)
varData = rngData.Value
For lngIndex = LBound(varData, 1) To UBound(varData, 1)
If Left(varData(lngIndex, 1), 1) = "6" Then
varData(lngIndex, 1) = "5" & Mid(varData(lngIndex, 1), 2)
End If
Next lngIndex
rngData.Value = varData
Application.ScreenUpdating
= True
End Sub
Answer : macro question which columns is the data changing
It's changing 6 to 5 in column G.
Random Solutions
Artifact created with LinearGradientBrush and FillRectangle
Excel marco (close excel file and auto rename)
Backspace not working
Fixing - Cannot perform an aggregate function on an expression containing an aggregate
Windows form dialog box Refresh parent
command box on my form that when clicked sends my report as .pdf file but in wrong record
Advice needed... getting data from another application into Access
ASP.Net asynchronous sql execution
xp professional service pack 3
Format a portion of text box in bold