Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm using a macro to basically add new columns to data pulled from
Access. I pulled 4 extra columns that I can re-write to be the same length as the data I actually need. So in my macro, I recorded Ctrl+Shift+Down to paste the data the length of the column, but this function does not get translated when I pull data that is longer than the original data I wrote the macro on. Is there a way to re-write this so that it goes to the end of the column each time it is executed, no matter how long the column is? Here is the code I have: Range("P2").Select Selection.Copy Range("P3").Select Range(Selection, Selection.End(xlDown)).Select ActiveSheet.Paste ActiveWindow.SmallScroll Down:=-3 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
F9, Shift+F9, Ctrl+Alt+F9 etc | Excel Discussion (Misc queries) | |||
Ctrl Shift | Macro Stops | Creating Short Cut Keys | Excel Programming | |||
Can you perform ctrl+shift+; in a macro to display time? | Excel Discussion (Misc queries) | |||
CTRL+SHIFT+END | Excel Programming |