ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   delete a row (https://www.excelbanter.com/excel-programming/277461-delete-row.html)

Dan[_23_]

delete a row
 
Is there a way that when i open an excel spreadsheet that
it will delete the first row automatically

Tom Ogilvy

delete a row
 
Public Sub Auto_Open()
ActiveSheet.Rows(1).Delete
End sub

--
Regards,
Tom Ogilvy


Dan wrote in message
...
Is there a way that when i open an excel spreadsheet that
it will delete the first row automatically




Dan[_23_]

delete a row
 
im very good with access but dont know excel that well
where do i put this code in how do i get to the code?
-----Original Message-----
Public Sub Auto_Open()
ActiveSheet.Rows(1).Delete
End sub

--
Regards,
Tom Ogilvy


Dan wrote in message
...
Is there a way that when i open an excel spreadsheet

that
it will delete the first row automatically



.


Tom Ogilvy

delete a row
 
Alt+F11 gets you to the visual basic editor. With your workbook as the
activeproject (should be highlighted in the project explorer),
Insert=Module from the menu (in the vBE). Put the code in the module.

--
Regards,
Tom Ogilvy


Dan wrote in message
...
im very good with access but dont know excel that well
where do i put this code in how do i get to the code?
-----Original Message-----
Public Sub Auto_Open()
ActiveSheet.Rows(1).Delete
End sub

--
Regards,
Tom Ogilvy


Dan wrote in message
...
Is there a way that when i open an excel spreadsheet

that
it will delete the first row automatically



.





All times are GMT +1. The time now is 07:07 AM.

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