M
MrDave
hi, I am using a keyboard shortcut for some copying tasks.
Offset can get to work, but does not suit purpose here.
would like to use a named range, to maintain integrity of sheet, moving
columns..
thanks
Named Ranges represent columns (from & to):
Dim M2 As String
M2 = Range("M2")
Dim N3 As String
N3 = Range("N3")
'does not work in a Sub(); wish to change columns
If Not Intersect(Me.Range(J3), .Cells) Is Nothing Then 'all
With Me.Cells(.Row, J2).Select
End With
End If
not working: how do I correct this, for the next item after:
Selection(ActiveSheet.Row, N3).Select 'does not work
Sub Paste2() 'alt-/ (slash)
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
ActiveWindow.SmallScroll Down:=190
'NEED TO MOVE TO A DIFFERENT COLUMN FROM HERE
End Sub
Offset can get to work, but does not suit purpose here.
would like to use a named range, to maintain integrity of sheet, moving
columns..
thanks
Named Ranges represent columns (from & to):
Dim M2 As String
M2 = Range("M2")
Dim N3 As String
N3 = Range("N3")
'does not work in a Sub(); wish to change columns
If Not Intersect(Me.Range(J3), .Cells) Is Nothing Then 'all
With Me.Cells(.Row, J2).Select
End With
End If
not working: how do I correct this, for the next item after:
Selection(ActiveSheet.Row, N3).Select 'does not work
Sub Paste2() 'alt-/ (slash)
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
ActiveWindow.SmallScroll Down:=190
'NEED TO MOVE TO A DIFFERENT COLUMN FROM HERE
End Sub