Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-17-2017, 04:44 PM
aymanharake aymanharake is offline How to select row Mac OS X How to select row Office 2016
Novice
How to select row
 
Join Date: Feb 2017
Posts: 6
aymanharake is on a distinguished road
Default How to select row

I want to delete the row that the current selected cell is on. the following code deletes that cell, but how can i delete the entire row?




Code:
' cutRow Macro
'
' Keyboard Shortcut: Option+Cmd+u
'
     Selection.Delete
End Sub
Reply With Quote
  #2  
Old 02-17-2017, 06:17 PM
jeffreybrown jeffreybrown is offline How to select row Windows Vista How to select row Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

Code:
Sub DeleteRow()
    ActiveCell.EntireRow.Delete
End Sub
Reply With Quote
  #3  
Old 02-18-2017, 04:05 PM
aymanharake aymanharake is offline How to select row Mac OS X How to select row Office 2016
Novice
How to select row
 
Join Date: Feb 2017
Posts: 6
aymanharake is on a distinguished road
Default

Thank you
Reply With Quote
  #4  
Old 02-18-2017, 04:09 PM
jeffreybrown jeffreybrown is offline How to select row Windows Vista How to select row Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

You are very welcome. Thanks for the feedback.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Select Objects in Excel instamatic Excel 0 08-22-2016 10:45 AM
How to select row How to select different words at once FTL Word 5 03-08-2016 06:10 PM
How to select row select all tables majed_m Word VBA 5 07-30-2015 03:29 AM
How to select row Activate/ select ContentControl czsti Word VBA 1 08-14-2013 08:32 AM
Select text between characters davers Word 10 05-24-2009 05:15 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:22 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft