#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Delete Rows


I think my question is too simple, because I've been searching through
these threads and can't seem to find the answer. All I want to do is
write into my macro the code to delete rows 1 and 2. That's it. Can
someone tell me what code to use? I'm afraid I'm a little too new at
designing macros. Thanks for your help!


--
andysgirl8800
------------------------------------------------------------------------
andysgirl8800's Profile: http://www.excelforum.com/member.php...o&userid=34752
View this thread: http://www.excelforum.com/showthread...hreadid=545666

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Delete Rows

Try

Rows("1:2").Delete


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"andysgirl8800"

wrote in message
news:andysgirl8800.28ds9a_1148590202.0129@excelfor um-nospam.com...

I think my question is too simple, because I've been searching
through
these threads and can't seem to find the answer. All I want to
do is
write into my macro the code to delete rows 1 and 2. That's
it. Can
someone tell me what code to use? I'm afraid I'm a little too
new at
designing macros. Thanks for your help!


--
andysgirl8800
------------------------------------------------------------------------
andysgirl8800's Profile:
http://www.excelforum.com/member.php...o&userid=34752
View this thread:
http://www.excelforum.com/showthread...hreadid=545666



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Delete Rows

Rows("1:2").Delete

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"andysgirl8800"
wrote in message
news:andysgirl8800.28ds9a_1148590202.0129@excelfor um-nospam.com...

I think my question is too simple, because I've been searching through
these threads and can't seem to find the answer. All I want to do is
write into my macro the code to delete rows 1 and 2. That's it. Can
someone tell me what code to use? I'm afraid I'm a little too new at
designing macros. Thanks for your help!


--
andysgirl8800
------------------------------------------------------------------------
andysgirl8800's Profile:

http://www.excelforum.com/member.php...o&userid=34752
View this thread: http://www.excelforum.com/showthread...hreadid=545666



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Delete Rows


thank you so much! knew it had to be simple! is it just as simple to
move column F to column A?


--
andysgirl8800
------------------------------------------------------------------------
andysgirl8800's Profile: http://www.excelforum.com/member.php...o&userid=34752
View this thread: http://www.excelforum.com/showthread...hreadid=545666

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Delete Rows

To overwrite the existing Column A with Column F (and F is deleted)

Columns(6).Cut Columns(1)

To insert before column A and delete F

Sub AAB()
Columns(6).Cut
Columns(1).Insert
End Sub

--
regards,
Tom Ogilvy

"andysgirl8800"
wrote in message
news:andysgirl8800.28du3y_1148592602.1133@excelfor um-nospam.com...

thank you so much! knew it had to be simple! is it just as simple to
move column F to column A?


--
andysgirl8800
------------------------------------------------------------------------
andysgirl8800's Profile:

http://www.excelforum.com/member.php...o&userid=34752
View this thread: http://www.excelforum.com/showthread...hreadid=545666



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
Hpw do I delete multiple empty rows found between filled rows? Bill Excel Worksheet Functions 2 November 15th 09 07:12 PM
Cut filtered rows, paste into next empty row of new sheet, and delete cut rows Scott Excel Worksheet Functions 0 December 13th 06 01:25 AM
Delete rows with numeric values, leave rows with text GSpline Excel Programming 5 October 11th 05 12:44 AM
How to delete rows when List toolbar's "delete" isnt highlighted? Linda Excel Worksheet Functions 1 May 26th 05 08:39 PM
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below Annette[_4_] Excel Programming 2 September 21st 04 02:40 PM


All times are GMT +1. The time now is 05:43 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"