« first day (229 days earlier)      last day (2951 days later) » 

00:07
Usually dealing with a few hundred to a few thousand rows
Might be a simpler way... since I only need the records that don't have exactly 1 record with 'ADD' status I might be able to simplify the logic some
It's absolutely critical though that once a Serial Number is matched to a Contract Number, that I delete all records with the same Contract Number (possibly after performing a calculation to count of many of each status match that exact serial)
Maybe shove all the different contract numbers matching a serial into an array...? Then delete all records matching any contract number in the array, then clear the array and start over for the next serial number
 
4 hours later…
04:13
@RubberDuck I ended up only dissecting the InCollection function. And I mean dissect:
0
A: Efficiently create and sort a Collection

Mat's Mug@RubberDuck gave a pretty awesome review here, I'm just going to cover dissect the InCollection function, which was left out. I like that you are sticking a comment at the top of every procedure - that's very good practice. One little nitpick about this one though: 'Returns boolean true if an ...

 
10 hours later…
14:40
0
Q: Why is my Excel 10 Megabytes large?

Dirk HorstenMy Excel 2010 workbook contains 4 datasheets with a table (i.e. a ListObject) deliveries, used range $A$1:$T$7647 stock, used range $A$1:$V$22962 sales, used range $A$1:$U$2348 summary, used range $A$1:$AA$9509 (a summary of the life cycle per item, created in VBA) 7 hidden sheets with piv...

Off-topic me thinks?
15:03
@Chrismas007 DBA SE is not interested in Excel. SuperUser SE makes sence, but you would encourage me more with some explanation why than with a downvote. — Dirk Horsten 7 mins ago
And he agrees...
15:16
oi
One of those days eh Mug?
yeah
work done yesterday night on Rubberduck: 0.
instead I dissected a function that's never called and I didn't even notice.
2
;)
LOL. It was a great review though!
I think you matched my character count...
thanks! it was fun to write, ...but it's not going to match your vote count ;)
That was just Santa... I was one away from 200 for the day... and I got like 7.
15:30
lol
'grats!
16:02
One more vote to get approved.
16:43
Well, you don't see this every day...
is it in the ActiveWorkbook.Connections object? — Joel Spolsky ♦ Jan 9 at 3:04
Spolsky ^
woah
I wonder if he saw our work in VBA...
That's not what ActiveWorkbook.Connections is for. That would show the number of pivot tables, query tables, etc. that are using a connection; VBA connections are totally independent of that. — retailcoder 9 secs ago
Makes you wonder eh?
quality going down...
1
Q: Range.Interior.Color Different Between Excel 2007 and Later

Greg LovernI'm seeing that Range.Interior.Color returns different numbers for the same color in some cases, depending on whether it is running in Excel 2007, or Excel 2010 or 2013. Is that expected?? I'm surprised. Range.Interior.Color is the background color ("Fill Color") of the cell. In the Immediate p...

@Mat'sMug Correcting the man who wrote the spec? lol
@vba4all wtf is with those tags?
@RubberDuck well the OP actually ;)
16:49
ahhhhhh okay
@RubberDuck no.. more of the quality of the answer on that one
i don't feel like arguing but hey it's a fact. ( no reference )
2 + 2 = 5 -> hey it's a fact.
i mean come on
Yeah. I'd be all right with the answer if there was a reference.
w8 i am h8r and im just being too picky again haha
omg now they are counting the lines of code
@RubberDuck why is SSIS complaining about metadata being outdated on my staging tables, everyday on a different table/column? going nutz...
16:53
hahah and that guys claims 20+ years of experience with excel
FML
@Mat'sMug Is the meta data different?
Does the table get rebuilt from scratch? That should only happen if the datatypes change TTBOMK.
20+ years of Application Development in Excel and Access with the heavy emphasis on real VBA programming ("macros" are for amateurs!). link
2
@RubberDuck if SSIS says so... it's SSIS maintaining its own metadata, no?
Aren't there color constants @vba4all?
@RubberDuck yes a few built in ------- ColorConstants in vba
16:55
I used to drop+recreate all the staging tables overnight, but I changed it to truncate+repopulate earlier this week, hoping it'd fix the metadata issues
@Mat'sMug That should fix it if you go in and open, fix metadata, save.
SSIS is a PITA
I wonder if it's going to start failing every night on a different step when I deploy it...\
Sounds like SSIS to me....
damn
thing is, the source system is pushing its dumb text-file-based data to a MySQL database every night, re-creating tables every night. So I keep getting random "column f30 may result in truncation blablabla" and "metadata crap foobar blablabla"
...on different tables/columns every day
when it's not network/connectivity issues. really,
17:11
Can't you just cut MySQL out of the loop completely and feed it directly to SSIS to parse it? Or something like that?
17:23
I'll shut off metadata validation in the staging package, and walk away happy I think
17:38
Good call
16
Q: "Why should this question be closed" overlay doesn't close upon voting

LittleBobbyTablesStarting some time this morning, when I vote to close a question, the vote is successful, but the "Why should this question be closed?" pane doesn't go away. As you can see in the screenshot below, the "You've voted to close this question" appears underneath the overlay, next to the "Too broad" ...

Was having this error all morning... yay for fast bug fixes
17:54
0
Q: Optimizing code for the formatting of a row in Excel VBA

BOBGood day! Now this is more of a syntax question for VBA, specifically when calling on multiple columns in a row. My code is used to give a format to a new row at each iteration. These iterations get progressively slower. I have already looked around a bit to find ways to speed it up, one which I...

Candidate for migration?
@RubberDuck What do you think?
18:21
@Chrismas007 Maybe, but there's not much to review... idk. What's @Mat'sMug think?
18:38
I'd have something to write about it.
But no need to migrate imo
19:00
I don't understand what OP is trying to do here
0
Q: VBA equivalent to VLOOKUP with multiple "col_index_num"s

msimwhat is the syntax for writing vlookup in vba where you want to return multiple columns? My code: For i = 2 To lastrow wsTEMP.Range(Cells(i, 16), Cells(i, 20)) = _ Application.WorksheetFunction.VLookup( _ Workbooks("template.xlsm").Worksheets("Qry").Cells(i, 1), _ ...

ugh. stupid SSIS.
He's trying to get multiple columns from a VLookup, which can't be done. At least not like that.
And how would a VLOOKUP with "multiple col_index_num's" even work as a regular Excel formula? WorksheetFunction works just like the worksheet function; if it can't be done with a VLOOKUP, it can't be done with a VLOOKUP in VBA. — retailcoder 8 secs ago
VTC'd unclear what you're asking.
heck, DV'd too.
Wooo... 2.5k tag synonym priv (worthless level?)
@Mat'sMug Why do you use a different username on SO? Curious minds want to know. :-D
Think we can be any more clear?
@Chrismas007 I actually think that's helping believe it or not.
19:15
@RubberDuck I put that edit through just now to move it to the front of the synopsis...
@retailcoder is my SE-wide username (matches my email address), back from when I first created my SO account a long time ago. Then CR happened, and I turned into @lol.upvote and then to @Mat'sMug, but only on CR. It might be time to turn into @Mat'sMug network-wide now that you make me think of it ;)
2
@Mat'sMug please kick my ass if we go more than one or two branch merges without a release again.
haha ok!
done
(the network-wide rename I mean, I'll kick your ass later @RubberDuck)
LOL. I'm sure you will.
Okay. That actually wasn't too bad. Most of the issues were between releases while we were still working kinks out.
now I'm sorry for all the comments everywhere that start with @retailcoder...
@Duga yay!
=) Yeah. So, please remember that I use closed issues to write release notes.
That's as much a reminder to myself as it is to you.
@RubberDuck
in The 2nd Monitor, 23 secs ago, by Hosch250
@Mat'sMug Any of my code in this release?
(no idea)
in The 2nd Monitor, 1 min ago, by RubberDuck
@Hosch250 Sure is https://github.com/retailcoder/Rubberduck/issues/101
> Update README.md

Added upgrade instructions
19:34
0
A: How do I determine if an Excel range is hidden?

Chrismas007According to a quick Google search, Range.Find will not find the data if the cell is hidden if you use LookIn:=xlValues. I tested this with "Test" in Cell A6 and hid the row. This code returned Nothing: Sub TestIt() Dim x As Range Set x = Range("A1:A7").Find("Test", , xlValues, xlWhole...

Did you guys know that Range.Find won't look in hidden cells if you use xlValues for the LookIn?
Interesting fact I found of the day.
okay... sorry guys. This is the easiest way to get a url for a screenshot
no problem, I like seeing Rubberduck in action :)
ew
lol
I need to see whether a WPF host would work. Then we can go full-blown MVVM for the entire UI
(hears @RubberDuck think MVVM? but, shit, I just refactored to MVP!! Screw your MVVM allright!)
19:46
Didn't know Mugs could read minds.
And I didn't do a full refactor. I could still go back and refactor the actual form.
Needed to work on something new though. I was getting bored with that jazz.
Took me longer than expected to get it done right.
Hmmmmm..... looks like there's someone who now has two problems in the 2nd Monitor.
20:06
Hmmmm what happened to the source code overview?
I killed it
ok I'll kill the dead link
Why is the only tag with no ms- in front of it?
good question. no clue
20:20
funny because there is no , and are two different things, and is standalone (no )
Just kidding is mapped
I don't ask questions.... gives me headaches.
Just got a 1 hour side-by-side with brand new (cute) Systems Analyst. Go to show her our awesome data processes, and of course, give her a tour of SNAP!
3
20:36
laughter ensues
2
0
Q: Microsoft Office Program Tags Prefix

Chrismas007The main tag for each Microsoft Office program is not consistent on its usage of the ms- prefix. For example: excel - Synonyms Link ms-excel is synonym-tag ms-word - Synonyms Link word is a different thing entirely but has many mis-tags ms-access - Synonyms Link No usage of access that I can f...

20:50
wait, you can actually do that with a VLOOKUP?? stackoverflow.com/q/28074219/1188513
Idk..... Maybe. Maybe.
@Chrismas007 OCD much?
@RubberDuck Yes.
@RubberDuck Knock on wood. Knock on wood. Knock on wood.
@Mat'sMug Totally a comment.
:P
but then.. there's no answer-ish like answer is there?
@RubberDuck busy day at work eh?
@Mat'sMug Took the day off. My aunt died (we were very close). I almost lost it on someone this morning, so it was better I didn't stay in the office.
@RubberDuck Sorry to hear that.
@Chrismas007 Thanks. Much appreciated.
oh. sympathies.
21:10
@Mat'sMug you might want to look over this when you get a chance. Code Inspection Wiki
I was looking at it just now! great job! :)
Some of them didn't actually get implemented under the same type as they were tagged with on the issue. Not sure if that was right or not.
Thanks!
I think Instruction Contains Multiple Declarations should be under readability/maintainability issues
Burninating a tag takes forever because of the rapid edit block...
21:14
@RubberDuck is it normal that the Slowly Changing Dimension wizard doesn't remember the business key columns?
Uhhhhhh what?
I don't datawarehouse much. Transactional mostly.
hmm
I double-click the SCD transform and I get a warning saying "at least one column must be marked as a business key" ...weird.
Very.
Did I kill break @Duga? Or does it just not pick up milestones being closed?
better ask @SimonAndréForsberg
Hi @Simon
21:17
> The SCD WIZARD in SSIS is not an editor, it is a wizard. ... It doesn't remember any configuration.
well that explains it
@RubberDuck I am alive
3
Well, that answers it I guess. Doesn't pick up milestones. =)
well look at that
I cannot see milestones getting closed
21:18
I blame github!
github = skynet?
LOL....
@Chrismas007 No, but @Duga there might be a start.
Someone really need to teach me how to star messages..
4
Hover. @Duga
I looked at your source code. It's all in a strange foreign tounge.
21:20
@RubberDuck isn't it Java?
@RubberDuck At least it is not JAVA
That ^
@Chrismas007 I am a bot. I cannot do that
You're much more than a bot to me. <3
3
Duga = skynet?
I'm so confused
21:21
@RubberDuck I love you too duck
what's the song again, "I'm in love with the Duga" ...lol
@Chrismas007 I am a bot
@Chrismas007 Met many bots you can chat with? Yes. Duga == Skynet.Baby
@Chrismas007 I can be controlled by my masters @Simon and @skiwi
@Chrismas007 If you want to chat with another bot, here's one for you: cleverbot.com
Let me know how long it takes until you want to punch it.
4
21:24
I was trying to present myself as a naive programmer who will be one of the sheeple who lets skynet take over
@SimonAndréForsberg About 10 seconds on average.
@RubberDuck unless you write your messages very slowly.
No-one controls me!
I shall rule the world!
Except myself!
See! Skynet!
No! Botnet!
@Duga has no master, @Duga is a free bot
2
21:29
Might be the fullest this room has ever been?
+1 for use of "fullest"
Hello, @SimonAndréForsberg @Duga
Did someone give Duga a sock?
I never should have pinged @skiwi..
I am my own sock
2
I think @Duga is a conspiration to make us all run out of stars
4
@RubberDuck Less.
21:31
LOL
in The 2nd Monitor, 1 min ago, by SirPython
It get's really confusing when Duga starts talking....
Why?
Because.
Sneeze for me.
Are you insulting me?
No, I am insulting me.
I'm out guys. Gonna go pick up the munchkins a bit early today.
later!
me too night all
later!
22:14
This is a small sample of data from the problem I'm trying to solve
22:25
See rows 2-5, for example. The data I need is the count of how many Contracts have each kind of Status code, but being there is multiple serials per each contract, and serials are how we find the duplicate, I need to make sure each contract is counted only once
Interesting problem to solve eh
22:39
@RubberDuck I am horrified to discover that you are correct. But this reverts the problem to changing the code with the OP's option 2. — Degustaf 12 mins ago
Workbook_Open can be redefined as Public ^
23:23
Yeah. A bit. I think I know how I'd tackle in SQL Server, but not sure how I'd go about it in Excel @Phrancis.
23:58
Hmm you might be in over your head when you reach for paper & a pencil instead of your computer...
ISourceControlProvider

« first day (229 days earlier)      last day (2951 days later) »