Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Process multiple rows

Hello all,
Just wondering if there is someone out there that might have run into
this problem before and would be willing to point me in the correct
direction.
I am attempting to create a macro that will process information based
on the row (s) that the user selects. I am attmpting to allow the used
to select any row(s) that he or she might want but am having trouble
in determining what has been selected. I would like to allow the user
to select any cell(s) on any row(s) and only process the information
on those rows.
An example of this would be a user could select A1, B3, F3 and all of
row 100. From this I would want to process row 1, 3 (but only once
even though it was selected twice) and 100.
From a little research I think that I can read row numbers into and
access them from an array variable in a manner of ARRAY_NAME(counter)
= Row_Number - Is this correct as well?
Any help that anyone would be willing to offer would be greatly
appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 434
Default Process multiple rows

hi, Terry !

here is one (possible) approach:

Sub A()
Dim myCell As Range
For Each myCell In Intersect(Range("a:a"), Selection.EntireRow)
MsgBox "Processing row: " & myCell.Row
Next
End Sub

hth,
hector.

__ OP __
Just wondering if there is someone out there that might have run into this problem before
and would be willing to point me in the correct direction.
I am attempting to create a macro that will process information based on the row (s) that the user selects.
I am attmpting to allow the used to select any row(s) that he or she might want
but am having trouble in determining what has been selected.
I would like to allow the user to select any cell(s) on any row(s) and only process the information on those rows.
An example of this would be a user could select A1, B3, F3 and all of row 100.
From this I would want to process row 1, 3 (but only once even though it was selected twice) and 100.
From a little research I think that I can read row numbers into and access them from an array variable
in a manner of ARRAY_NAME(counter) = Row_Number - Is this correct as well?
Any help that anyone would be willing to offer would be greatly appreciated.



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
the process of displaying a subset of rows in a table means? unknowlegeable Excel Discussion (Misc queries) 2 March 15th 09 06:56 PM
How to process multiple Excel Files Nils Titley Excel Programming 2 March 17th 08 05:00 PM
Excel 2003: VBA - Hide Rows process now too slow BEEJAY Excel Programming 1 February 13th 08 10:54 PM
How to process selected rows Ron[_33_] Excel Programming 5 August 3rd 05 10:38 AM
macro to process rows in a selection fdebruin Excel Programming 3 August 14th 04 01:14 PM


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