LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 2
Default VBA help with selecting multiple data ranges

Hi, i'm new to VBA coding. The situation is that I have a file that comes in every week with the same number of column, but with different number of rows [i.e. one week the data have 50 rows, another might have 200 etc...]. I would make a table [ctrl L] that consist of the entire data set and name it 'X' to do further analysis.

Lets say if the column is always from A to Z, and I always want to name the table 'X', how would i write a macro for that?

So far all I got from reference books is:

Sub Test()
Range(ActiveCell, ActiveCell.End(xlDown)).Select
End Sub

Please provide an example on how to do this [and please explain the reasoning behind the example if possible, I am new to VBA and have no prior programming experience]
 
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
Selecting multiple named ranges Ted M H[_2_] Excel Programming 1 July 11th 09 07:58 PM
Selecting multiple ranges RWN Excel Programming 4 December 18th 06 12:34 AM
Trouble with selecting multiple ranges of data markag Excel Worksheet Functions 2 June 23rd 06 04:35 PM
Selecting multiple ranges [email protected] Excel Programming 5 February 2nd 06 06:49 PM
selecting multiple ranges Helen Excel Programming 3 January 16th 05 03:46 AM


All times are GMT +1. The time now is 09:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"