I am new to vba macros and need help. I have a very simple vba macro, but I would like delete row after I cut row to another sheet and then shift remaining cells up
![]()
Please Login or Register to view this content.
I am new to vba macros and need help. I have a very simple vba macro, but I would like delete row after I cut row to another sheet and then shift remaining cells up
![]()
Please Login or Register to view this content.
Last edited by alansidman; 08-25-2020 at 10:43 PM.
Code Tags Added
Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.
Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html
(I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
try something like this
![]()
Please Login or Register to view this content.
Last edited by jindon; 08-25-2020 at 11:03 PM.
Ok, thank you.
I'm getting an error on the last End If "end if without block if"
OOps, the code has been edited.
You could also do it with AutoFilter, if you have header.
Now I'm getting an errorline. Sorry I'm new to vba and struggling![]()
Please Login or Register to view this content.
Can you show me the whole code?
![]()
Please Login or Register to view this content.
And what kind of error are you getting?
it turns yellow and says delete method of range class failed![]()
Please Login or Register to view this content.
Then I need to see your workbook, as it is working here.
Or is the worksheet protected?
I ran my first macro and manually deleted columns then changed to your macro and yes it works. Thank you jindon
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks