#1   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default MACRO SELECT COLUMN

Hello, I am trying to make a macro to select a column, preferably from preset
rows, but if I select the first cell, I have:

Dim C6 As String
C6 = Range("C6")

'C6 has: =ROW($A$1000) 'to designate the last row

Range(ActiveCell, ActiveCell.Offset(1000, 0)).Select

How do I include C6 in the above line, thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default MACRO SELECT COLUMN

note: offset 1000 not same as last row
maybe will need to change what is in C6 to a: ROW minus ROW..

=ROW($A$1050)-ROW($A$50)

"Dan" wrote:

Hello, I am trying to make a macro to select a column, preferably from preset
rows, but if I select the first cell, I have:

Dim C6 As String
C6 = Range("C6")

'C6 has: =ROW($A$1000) 'to designate the last row

Range(ActiveCell, ActiveCell.Offset(1000, 0)).Select

How do I include C6 in the above line, thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default MACRO SELECT COLUMN

i can do that.. note: would make this a comment to somewhere, i don't know
if what I come up with might be unique ?? / , but everytime I give all the
details, people skip the request. not saying this as maybe, observed that
at 100%..

better to do in pieces.
just trying to copy a formula to selected cells, with a couple of twists:
- skip rows where column A has a period ".", to name one

doesn't change anything about selecting a specific set of rows in a column.
thanks.


"מיכאל (מיקי) אבידן" wrote:

Until you get a "better" reply may I suggest that you explain, in details(!),
your aim so we can focus on the target without having to debugg the code.
Micky


"Dan" wrote:

note: offset 1000 not same as last row
maybe will need to change what is in C6 to a: ROW minus ROW..

=ROW($A$1050)-ROW($A$50)

"Dan" wrote:

Hello, I am trying to make a macro to select a column, preferably from preset
rows, but if I select the first cell, I have:

Dim C6 As String
C6 = Range("C6")

'C6 has: =ROW($A$1000) 'to designate the last row

Range(ActiveCell, ActiveCell.Offset(1000, 0)).Select

How do I include C6 in the above line, thanks.

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
can't select a macro Donna[_2_] Excel Discussion (Misc queries) 0 May 15th 09 02:55 AM
Macro to select cells without a certain value and select a menu it Guy[_2_] Excel Worksheet Functions 9 January 2nd 09 05:21 PM
Macro to select cells in column enter data then press enter NP New Users to Excel 1 February 20th 08 04:21 PM
Shortcut to select column with data in previous column TJAC Excel Discussion (Misc queries) 1 July 10th 07 06:12 PM
select detail in column B if column A = date Dan B Excel Worksheet Functions 0 September 18th 06 04:46 PM


All times are GMT +1. The time now is 12:14 PM.

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

About Us

"It's about Microsoft Excel"