Please excuse me for I am very new at this. I dont know the code lanuage on how to do it.
My goal is to automate with a macro, these stroke combinations. (the macro recorder is not working the way I need it to).
If I was using keyboard short cuts =
1) Select H117 on Sheet7
2) ctrl + shirt + down arrow
3) shift + up arrow
I currently have (and I know its WRONG)...
Any help is greatly appreciated. Thanks in advance.Sub Macro6() ' ' Macro6 Macro ' ' Range("H117").Select Range(Selection, Selection.End(xlDown)).Select With Selection .Range(ActiveCell, ActiveCell.Offset(-1, 0)).Select End With End Sub
Last edited by clemsoncooz; 12-30-2011 at 11:34 AM.
So you want to select everything bar the last row of data?
Note that you rarely ever need to Select anything to work with it - it makes your code slower and less efficient than it could be. But for learning I think it's fine.Range("H117",Cells(117,"H").End(xlDown).Offset(-1)).Select
yup! wonderful! Thank you!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks