Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default VB - Relative Refs



Howdie,

Im looking for some VB that will, in the column that the cursor is
currently in, select cells 3:180.

So if active cell is in column B when macro is run it will select
b3:b180 and if active cell is in column X when macro is run, it will
select select x3:x180....

Thanks!!!

D

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default VB - Relative Refs

Darin,

Here's one way


Sub test()
With ActiveCell
Range(Cells(3, .Column), Cells(180, .Column)).Select
End With
End Sub


--
Hope that helps.

Vergel Adriano


"Darin Kramer" wrote:



Howdie,

Im looking for some VB that will, in the column that the cursor is
currently in, select cells 3:180.

So if active cell is in column B when macro is run it will select
b3:b180 and if active cell is in column X when macro is run, it will
select select x3:x180....

Thanks!!!

D

*** Sent via Developersdex http://www.developersdex.com ***

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default VB - Relative Refs


Thanks! Works perfectly!


*** Sent via Developersdex http://www.developersdex.com ***
Reply
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
SUMPRODUCT or SUMIF and INDIRECT, with Relative cell refs Greg in CO[_2_] Excel Worksheet Functions 5 September 15th 08 04:41 PM
Relative Refs Darin Kramer Excel Programming 4 March 2nd 07 02:37 PM
Excel: Mass change relative cell refs to absolute (more than F4) aduchnow Excel Programming 2 May 13th 06 04:51 AM
How use name refs for Source Data? [email protected] Charts and Charting in Excel 1 April 18th 06 08:56 AM
Sheet Refs in Add-In Ian Excel Programming 4 April 28th 05 07:58 PM


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