Rabu, 06 Maret 2013

RE: [ExcelVBA] define a range then use it in code

 

Dim TRANGE As Range
Set TRANGE = Worksheets("Sheet1").Range("A1:U1").End(xlDown)

TRANGE.Select

From: ExcelVBA@yahoogroups.com [mailto:ExcelVBA@yahoogroups.com] On Behalf
Of Manny
Sent: 06 March 2013 14:39
To: ExcelVBA@yahoogroups.com
Subject: [ExcelVBA] define a range then use it in code

I am using the following code to define and declare a range:

Dim TRANGE As Range
TRANGE = Worksheets("Sheet1").Range("A1:U1").End(xlDown).Row

I tried to have the range selected using this code:
Range("TRANGE").Select

Of course that fails. What is the proper code to have this range selected?
Or does this make sense at all? I am a novice to VBA.

[Non-text portions of this message have been removed]

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)
Recent Activity:
----------------------------------
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.

----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA

----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com

----------------------------------
.

__,_._,___

Tidak ada komentar:

Posting Komentar