First timer. So please excuse the the simpleton.
I wish to copy a selection with the bottom row number linked to a cell value in the active worksheet. My code reads:
Sub test()
'
' test Macro
'
' Keyboard Shortcut: Ctrl+Shift+J
'
Dim ABC As Integer
ABC = Range("AC4").Value
Range("B18:X" & ABC).Select
Selection.Copy
End Sub
I read a lot of previous posts and thought I had it right but I still get [Method 'Range' of object'_Global' failed]. Any help would be greatly appreciated.
Bookmarks