LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Public variable declaration

DIm xLast as string
xlast = activecell.address
range ("A1",Range(xlast)).select

Or

Dim xLast as Range
set xlast =activecell
range("A1", xlast).select


You can use same last line...

Range("A1", xlast).Select

for both of these approaches.

--
Rick (MVP - Excel)


 
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
public variable declaration, memory efficient? slarbie Excel Programming 2 April 6th 09 03:56 PM
Use of Public for data declaration in Excel 2000 Gandalph Excel Programming 1 April 17th 08 06:47 PM
Declaration of public variable - Question Les Stout[_2_] Excel Programming 2 October 5th 05 02:53 PM
Public declaration Greg[_16_] Excel Programming 2 January 21st 05 10:53 PM
public declaration kevin Excel Programming 1 December 6th 03 07:00 PM


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