LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bec Bec is offline
external usenet poster
 
Posts: 15
Default Ignore First row

I am trying to delete some columns programmatically. I have been recording a
macro and then editing the code.

This is the code I am using:
Columns("E:G").Select
Range("E2").Activate
Selection.EntireColumn.Hidden = True

This works fine for the macro. When I go to rerun it, it fails. If I delete
the top merged heading row then it works. This heading gets automatically
created from another program so I can't delete it but I want my code to
ignore the top row when deleting the columns programmatically

I hope I am making myself clear. And I hope that someone can help me out.

Cheers
Bec
 
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
ignore #n/a GENO Excel Discussion (Misc queries) 2 November 25th 09 02:41 PM
ignore #N/A in a sum? Todd Excel Worksheet Functions 3 September 5th 06 10:05 PM
IF to ignore #N/A claytorm Excel Discussion (Misc queries) 6 November 21st 05 07:53 PM
please ignore Jordan Excel Worksheet Functions 0 June 17th 05 12:00 AM
Ignore #DIV/0! DLZ217 Excel Worksheet Functions 4 April 26th 05 03:20 AM


All times are GMT +1. The time now is 12:56 PM.

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"