Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cell Range Values with VBA


I really haven't used VBA in Excel before, but what I'm trying to do i
loop through a range of cells and determine the string value an
increment 2 counters depending on the value of the strings and the
display the value in a cell in the EXCEL spreadsheet.

I have NO idea on how to do this except that I probably need to us
VBA.

I am a .Net/C# programmer so that wil give you an idea of m
background..

Thanks for your help!

Dou

--
drdexter3
-----------------------------------------------------------------------
drdexter33's Profile: http://www.excelforum.com/member.php...fo&userid=3620
View this thread: http://www.excelforum.com/showthread.php?threadid=55990

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Cell Range Values with VBA


For Each cell In Selection
Select Case cell.Value
Case "abc": cntr1 = cntr1 + 1
Case "xyz": cntr2 = cntr2+1
Case Else: MsgBox "oops"
End Select
Next cell

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"drdexter33" wrote
in message ...

I really haven't used VBA in Excel before, but what I'm trying to do is
loop through a range of cells and determine the string value and
increment 2 counters depending on the value of the strings and then
display the value in a cell in the EXCEL spreadsheet.

I have NO idea on how to do this except that I probably need to use
VBA.

I am a .Net/C# programmer so that wil give you an idea of my
background..

Thanks for your help!

Doug


--
drdexter33
------------------------------------------------------------------------
drdexter33's Profile:

http://www.excelforum.com/member.php...o&userid=36203
View this thread: http://www.excelforum.com/showthread...hreadid=559903



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
formula for named cell/range using cell values alex Excel Worksheet Functions 2 August 27th 05 06:44 PM
formula for named cell/range based on cell values alex Excel Programming 2 August 25th 05 02:50 PM
Cell linked to a range of cell values in different sheet szeng Excel Discussion (Misc queries) 1 August 9th 05 02:41 AM
Search/Filter to find values in another range based on two cell values Andy Excel Programming 2 April 29th 04 04:08 PM


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