Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
joe joe is offline
external usenet poster
 
Posts: 62
Default Assistance in VBA

Hi,

How to delete a specific range of cells that has the data
in there and leave blank cells there? This blank cells
will then contains the data upon pressing a button? for
example, I got row 1- 10 contains the data, decided to
delete rows 6-8 and leave blank, row 9-10 will still
cotains data. Upon pressing the buttons, rows 6- 8 will
filled the data again and will auto insert the rows needed
to contain the data. Rows9-10 which have data previously
will be pushed down after insertio of more rows.

many thanks,

regards,
Joe

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Assistance in VBA

Sub Delete6_to_8()
range("6:8").Delete
End Sub

Sub Insert6_to_8()
range("6:8").Insert
End Sub


--
Regards,
Tom Ogilvy

"Joe" wrote in message
...
Hi,

How to delete a specific range of cells that has the data
in there and leave blank cells there? This blank cells
will then contains the data upon pressing a button? for
example, I got row 1- 10 contains the data, decided to
delete rows 6-8 and leave blank, row 9-10 will still
cotains data. Upon pressing the buttons, rows 6- 8 will
filled the data again and will auto insert the rows needed
to contain the data. Rows9-10 which have data previously
will be pushed down after insertio of more rows.

many thanks,

regards,
Joe



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
Assistance please Gauri Excel Worksheet Functions 2 June 25th 08 08:22 AM
If Then assistance... Murph Excel Worksheet Functions 6 December 18th 07 06:07 PM
Need some assistance mjman15 Excel Worksheet Functions 0 November 10th 05 10:44 PM
Assistance please? http:// Excel Worksheet Functions 7 July 6th 05 08:16 PM
I need assistance please Joe[_29_] Excel Programming 5 January 5th 04 04:46 PM


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