Computing.Net > Forums > Office Software > Need Help With Excel Macros

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Need Help With Excel Macros

Reply to Message Icon

Name: GH25
Date: April 7, 2009 at 14:36:09 Pacific
OS: Windows XP
Subcategory: Microsoft Office
Comment:

I am trying to create a Macro in Excel. I need it to: Delete row 2
Delete column c
Delete columns o - z
Am I allowed to delete columns in this way? I keep returning a blank page.

The other functions I need are performing properly. I'm wondering if I'm not supposed to delete the columns.



Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: April 7, 2009 at 15:04:42 Pacific
Reply:

re: Am I allowed to delete columns in this way?

In what way? You haven't told us what you are doing, so how could we answer that question?

Sub OneWay()
 Rows(2).EntireRow.Delete
 Range("C:C,O:Z").EntireColumn.Delete
End Sub


0

Response Number 2
Name: GH25
Date: April 7, 2009 at 17:18:07 Pacific
Reply:

Sorry, I am new to Macros. I am right clicking on the column to delete. I have since gotten my macro to work, as long as I don't use a macro to delete the columns.
I am not familiar with VBA. Can I delete the columns a different way?

Thank you for your help.


0

Response Number 3
Name: DerbyDad03
Date: April 7, 2009 at 19:07:29 Pacific
Reply:

You still haven't given us enough information.

I offered code to delete columns, but you haven't told us anything about your macro or what errors you're getting.

There's no way we can help without some details.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Need Help With Excel Macros

Need help writing Excel Macro www.computing.net/answers/office/need-help-writing-excel-macro/6792.html

Excel Macro Question www.computing.net/answers/office/excel-macro-question/2045.html

Excel Macro help. www.computing.net/answers/office/excel-macro-help/8054.html