Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > VBA / Office Integration > Excel > Transferring Info


Reply
 
Thread Tools Display Modes
  #1  
Old 04-11-2004, 01:45 PM
sparky3883 sparky3883 is offline
Regular
 
Join Date: Jan 2004
Posts: 52
Default Transferring Info


Hey there

I have recently created a spreadsheet which contains 3 sheets.

Sheet 1 holds most of my information, and by using the Data|Filter|Advancefilter option, i am selecting one entire column of information and copying it onto sheet 2.

The problem is, although i am transferring the entire coulmn of information onto Sheet 2, i need to leave 5 rows blank, therfore, i am needing to separate the transferred information.
I am using the formula $A$1:$A$20 to copy the information into Cells A1 to A20.
However, i need to leave cells A8 - A12 blank, so is there any way that i can copy the selected info over, but leaving these cells blank.

Would something like $A$1:$A$7:$A$13:$A$26 work?

Thanks for the help
Reply With Quote
  #2  
Old 04-11-2004, 03:49 PM
Kluz's Avatar
Kluz Kluz is offline
Sapience.Aquire

Super Moderator
* Expert *
 
Join Date: Oct 2003
Location: Lake Bluff, Ill., U.S.
Posts: 3,306
Default

You can add the line:
Code:
Range("A8:A12").ClearContents
after the copy process.
__________________
No the other right mouse click
Reply With Quote
  #3  
Old 04-11-2004, 05:34 PM
sparky3883 sparky3883 is offline
Regular
 
Join Date: Jan 2004
Posts: 52
Default

Quote:
Originally Posted by Kluz
You can add the line:
Code:
Range("A8:A12").ClearContents
after the copy process.
Thanks for your help, but if i used that command, would it clear the contents completly, or will it clear the specified cells and move the contents down??

Thanks again
Reply With Quote
  #4  
Old 04-11-2004, 07:04 PM
Jamirez's Avatar
Jamirez Jamirez is offline
Contributor
 
Join Date: Jan 2004
Location: Sherbrooke/Québec/Canada
Posts: 614
Default

ClearContent will completly erase all data in range.
__________________
J a m i r e z

There are 10 type of people. Those which understand binary and those which do not understand it.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open multiple weblinks - save in excel - exctract info from specific cells, etc hoopla Excel 15 03-08-2004 08:45 PM
Retrieve info (winsock control) AWS Communications 1 09-23-2003 03:31 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->