Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Select only a certain range

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,61369
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Select only a certain range
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Select only a certain range - 6/14/2008 1:15:23 PM   
  gi_james


Posts: 4
Score: 0
Joined: 6/14/2008
From: Misawa Japan
Status: offline
Greetings all,

I'm trying to automate formatting a spreadsheet.  I need to know how to select only a certain range of cells.

I need to select the range of cells between rows one and three.  column B would always contain a number like 13529954, and move them to the end of the row above it.

Please look at the spreadsheet below.  I have imported a TAB Delimited spreadsheet and formatted the way it is suppsoed to be.  I just need some help on automating this.  If you look in the formatted spreadsheet, you'll see that Tab B is the formatted one.

Basically, I need to copy the range of cells below the row with a conf. number (i.e. 13529954) and move them next to the time on that row (or move them up one row to the end of that range).  Some have mulitple rows that need to be moved, this is where I'm confused.  Please look at my code and point me in the right direction.

Here is an example: http://www.strickstuff.com/report_example.xls
here is an example: http://www.strickstuff.com/mycode.txt


      

_____________________________

James Strickland
Misawa Air Base, Japan
http://www.strickstuff.com
 
 
Post #: 1
 
 RE: Select only a certain range - 6/14/2008 4:42:46 PM   
  krajeev

 

Posts: 1
Score: 0
Joined: 6/14/2008
Status: offline
how do we fetch excel data to web pages through vbscript

(in reply to gi_james)
 
 
Post #: 2
 
 RE: Select only a certain range - 6/14/2008 5:03:45 PM   
  gi_james


Posts: 4
Score: 0
Joined: 6/14/2008
From: Misawa Japan
Status: offline
Start a new thread for this question.

(in reply to krajeev)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Select only a certain range Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts