ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   what is the code to delete row&column. (https://www.excelbanter.com/excel-programming/345111-what-code-delete-row-column.html)

areddy[_23_]

what is the code to delete row&column.
 

Hi All,
I want to delete first row and column. When I open the excel iam havin
blank row and column.

please see the attachment.

Regards,
Amar..

+-------------------------------------------------------------------
|Filename: Delete Row&Column.doc
|Download: http://www.excelforum.com/attachment.php?postid=4016
+-------------------------------------------------------------------

--
aredd
-----------------------------------------------------------------------
areddy's Profile: http://www.excelforum.com/member.php...fo&userid=2820
View this thread: http://www.excelforum.com/showthread.php?threadid=48339


bpeltzer

what is the code to delete row&column.
 
You can record deleting the first row and column and then open the VB editor
to see the code:
Rows("1:1").Select
Selection.Delete Shift:=xlUp
Columns("A:A").Select
Selection.Delete Shift:=xlToLeft
Range("A1").Select



"areddy" wrote:


Hi All,
I want to delete first row and column. When I open the excel iam having
blank row and column.

please see the attachment.

Regards,
Amar...


+-------------------------------------------------------------------+
|Filename: Delete Row&Column.doc |
|Download: http://www.excelforum.com/attachment.php?postid=4016 |
+-------------------------------------------------------------------+

--
areddy
------------------------------------------------------------------------
areddy's Profile: http://www.excelforum.com/member.php...o&userid=28204
View this thread: http://www.excelforum.com/showthread...hreadid=483393




All times are GMT +1. The time now is 05:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com