Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 394
Default Count Variable

Yes Bob,

I thought I had deleted this one.

Thanks in Advance.
All the Best.
Paul

On Aug 21, 11:27 am, "Bob Phillips" wrote:
Is this superseded by your later post?

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Paul Black" wrote in message

oups.com...



Hi everyone,


I have a sheet where column one is a number from one to whatever.
In columns two to seven I have a number in each cell.
What I would like to do is, instead of it picking up the number from
column one using the variable GName, use the variable GName as a
counter, so the results will be exactly the same as they are now other
than the GName counter is used instead of it being picked up from the
sheet.


Public Sub Test()
Dim RowData As Range
Dim C As Long
Dim WName As String
Dim WData As String


For Each RowData In ActiveSheet.UsedRange.Rows
With RowData
GName = .Cells(1, 1).Value
GData = ""
For C = 2 To 6
GData = GData & .Cells(1, C).Value & ","
Next C
WData = WData & .Cells(1, 7).Value
Debug.Print "SetGroup" & GName & "," & GData
End With
Next RowData
End Sub


Thanks in dvance.
All the Best.
Paul- Hide quoted text -


- Show quoted text -



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
Count in a variable range Ron@Buy Excel Worksheet Functions 4 September 27th 07 08:24 AM
Count if multiple variable exist Stan Excel Discussion (Misc queries) 1 March 16th 07 03:30 PM
Using COUNT value as variable Naterator Excel Programming 5 June 14th 06 03:23 AM
Multiple Variable Count problem Robbie_lambert Excel Worksheet Functions 1 May 5th 06 02:44 PM
variable row count 2 Bart Excel Programming 1 December 15th 04 10:19 AM


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