I'm having difficulties with this
how do I get the Userngname range to equal the range found by Username string?
Please Login or Register to view this content.
I'm having difficulties with this
how do I get the Userngname range to equal the range found by Username string?
Please Login or Register to view this content.
Regards
Sean
Please add to my reputation if you think i helped (click on the star below the post)
Mark threads as "Solved" if you have your answer (Thread Tools->Mark thread as Solved)
Use code tags when posting your VBA code: [code] Your code here [code]
Please supply a workbook containing example Data: It makes its easier to answer your problem & saves time!
In your example, Userngname appears to be the same range as UseK2WCRng?
Well that's what I would like it to do but it fails
the idea was to run this procedure through a range and look up the range to use for the userngname range
however I am getting the string via username of "UseK2WCRng", but when I try to use this to assign it to userngname range so I can use it in the countifs formula it wont work
It won't work because the value of Username ("UseK2WCRng") is not a named range. You have defined it as object (range) variable. It would work if you commented outPlease Login or Register to view this content.
What I wanted to do was have a number of ranges already set as per
Please Login or Register to view this content.
but then depending on what was in Sheet4.Cells(Rep.Row, "B").Value it would be able to use that particular range in my countif
I think the way to do it is thus
Please Login or Register to view this content.
Cheers Stephen, I will give it a go tomorrow
looks like it may work!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks