Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default delete a row

Is there a way that when i open an excel spreadsheet that
it will delete the first row automatically
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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



.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
delete the test values, but do not delete the formulas kathy Excel Discussion (Misc queries) 1 February 21st 07 07:03 PM
How to Delete a Range in Closed Workbook (to Replace Delete Query) [email protected] Excel Discussion (Misc queries) 1 March 8th 06 10:10 AM
How do i delete a macro in Excel 2003 when delete isn't highlight Abel Excel Discussion (Misc queries) 2 September 13th 05 04:09 AM
How to delete rows when List toolbar's "delete" isnt highlighted? Linda Excel Worksheet Functions 1 May 26th 05 08:39 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"