Click here to Skip to main content
15,885,435 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to take a row from a tab in an excel spreadsheet and put in another tab on the next available row. I think I need to have a pointer going up in value by one every time a row gets filled?

What I have tried:

recording a macro but obviously dont know how to override the code with a pointer feature
Posted
Updated 25-May-23 13:50pm
Comments
Graeme_Grant 24-May-23 8:19am    
the VBA generated is an example of what you need to code. If you don't understand what is generated, then you need to learn to understand. We are here to give you direction, not write your code for you. If we do it for you, you will not learn. Google and YouTube are good places to start.
0419825184 24-May-23 8:21am    
You are right of course! I'm close to figuring it out, I can feel it...but head wrecked with it!

I find this site useful for my students learning VBA - Excel Macro Mastery[^] There are lots of worked through examples and he explains the principles very well.

If you prefer to learn from videos he also has a YouTube channel - https://www.youtube.com/channel/UCLsnK4MPVaqiVx3DSEqbb1A[^]

Be aware there are numerous adverts for you to buy his book and/or courses - there is no need to part with your money!

This video might be one to help you with this particular problem - How to get the Last Row in VBA(The Right Way!) - YouTube[^]
And this one will help you with moving the data How to Use Arrays Instead of Ranges in Excel VBA - YouTube[^]

Hint - because you have recorded a macro you are likely to be using Cut & Paste - don't!
 
Share this answer
 
It is very easy to copy and paste ranges in Excel and in Excel VBA. You only need to record your macro using appropriate Keyboard shortcuts.

XlDirection enumeration (Excel) | Microsoft Learn[^]

Keyboard shortcuts in Excel - Microsoft Support[^]

Getting started with VBA in Office | Microsoft Learn[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900