« first day (1117 days earlier)      last day (2063 days later) » 

12:00 AM
RELOAD!
[rubberduck-vba/Rubberduck] 3 issue comments.
 
 
9 hours later…
9:07 AM
> It's a pretty huge project with ~700 Inspections.
 
 
1 hour later…
Kaz
10:31 AM
@Vogel612 I think 6-8 weeks should cover it ^^
 
@Kaz that ain't soonish in my book
 
 
1 hour later…
11:43 AM
@Vogel612 sooner than Christmas (2020)
 
jeebus...
 
11:59 AM
Why do you need 5m records in a single file? I'm guessing the file will take forever to save, and take even longer to load (if it loads at all). Excel might allow 1m rows, but it's not designed to be abused. — ThunderFrame 12 secs ago
 
12:28 PM
@ThunderFrame The answer provided is a bit nonsensical, too.
 
 
3 hours later…
3:07 PM
Whatever the reason you think you need 5 million rows in Excel is, it's wrong. No Excel worksheet ever needs to work with that much data. You're going to be aggregating it, summarizing it, looking things up, etc. - make the SQL backend do that work, and only give Excel the data it needs. This is a blatant X-Y problem: you're solving a symptom (too much data to fit worksheet) rather than the actual problem at hand (wild guess, you're making some report), making Excel do the job of a database. — Mat's Mug 13 secs ago
@FreeMan aye, and that's my downvote. it's giving the OP a way to split their monster query into 3 monster queries, as if OP actually needed a spreadsheet with 5 million rows.
 
But... OPs happy with the kludge to patch his problem instead of rethinking the problem. Whatever works...
@Mat'sMug - going to have to get with you on your Logger. I'd like to implement it, but I'm a bit stuck. Maybe later this afternoon or tomorrow when you have time to hold a hand.
 
the FileLogger class?
Private Sub ILogger_Log(ByVal output As String)
    Dim fn As Long
    fn = FreeFile
    Open LOG_FILE_PATH For Append As #fn
    Write #fn, output
    Close #fn
End Sub
wouldn't that work?
the FileWriter part is just an implementation detail: at the end of the day all you need is to make the ILogger_Log method able to persist the output string to whatever log file you want it to work with
the DefaultLogMessageFormatter should work as-is for that use case
(you'd need a special implementation for, say, a DatabaseLogger)
 
3:54 PM
I have a project where on one sheet there is a Vlookup that references table Foo, and when the macro runs it deletes Foo and re-creates it. Is there a way of (easily) preventing the reference to Foo from breaking?
 
hmm, use an INDIRECT reference?
or, don't delete Foo
 
Indirect doesnt seem to like the table reference.
 
what's the formula like?
I'm using INDIRECT with table refs for data validation lists... works fine
 
=INDIRECT(VLOOKUP([STUDENT_ID],Updated_Rec_list,COLUMN(Updated_Rec_list[SLED_INP‌​UT]),FALSE)) doesnt work, and =VLOOKUP([STUDENT_ID], INDIRECT(Updated_Rec_list]), COLUMN(INDIRECT(Updated_Rec_list[SLED_INPUT]), FALSE) doesnt work.
the second one fails on the first indirect
 
=VLOOKUP(INDIRECT("[STUDENT_ID]"), INDIRECT("Updated_Rec_List"), COLUMN(INDIRECT("Updated_Rec_List[SLED_INPUT]")), FALSE)
 
4:02 PM
Ahh I see. My first time using INDIRECT
 
=INDIRECT("A1")
 
makes sense
 
so you can have formulas that evaluate to names of named ranges, and then use INDIRECT to reference them
e.g. I have a price list with CAD and USD prices, so I can lookup from the UnitPrice_CAD or UnitPrice_USD column based on what currency is selected in Header_CurrencyCode :)
=INDIRECT("UnitPrice_" & Header_CurrencyCode)
very handy!
 
Very handy indeed :)
 
(a bit slower than direct refs though)
 
4:08 PM
For this particular application I'm not worried about it. Its for a former teammate (now in a different department) and if it is a bit slower for her I'm not worried. That said, its maxed out at about 300 rows, and only a handful of columns so it shouldnt be an issue anyways.
 
aye, just something to keep in mind
 
Appreciated
Ideally I would just have the macro do it, but I am not opening that can of worms with them lol
 
lol
 
 
2 hours later…
6:27 PM
Got rubberduck just in time
Got asked to rescue a completely terrible vba project this afternoon
"Fix all occurrences in project" is being used
2
 
@Mat'sMug Thanks sir. I was stuck on trying to figure my way around TextWriter.CanWrites CanWrite = openedFiles.TryGetValue(fileName, fileNumber) missing TryGetValue from Mat'sMug.Dictionary. I guess just ignoring the TextWriter never occurred to me.
you know - walking through the forest, get a tree in the eye, can't see... yada yada yada...
 
6:53 PM
wow... about to ask another dumb question. Pulled the twig out of the other eye, just in time...
 
 
1 hour later…
8:18 PM
I've noticed that the Rename dialog box does not default to selecting the OK button when the Enter key is pressed... does anyone else feel that it should?
 
@shadowofsilicon agreed! please open an issue for that - these little things are easy to fix, but just as easy to forget fixing
 
> In the Rename dialog, there is currently no default selection for the OK/Cancel buttons. Therefore, pressing the Enter key does nothing when the dialog box is active.

The OK button should be the default selection, so that pressing Enter activates the same action as pressing OK.
 
I hope that makes sense lol
 
thanks!
 
8:30 PM
@Mat'sMug How's your new nest coming along? Everything all settled in?
 
I still haven't finished all the renovations, there's still a washer+dryer combo in the middle of my dining room.. but the wiring is all ready in the new room, we're finishing the drywall and will probably starting priming for paint this week
 
@Mat'sMug Wait, you moved?
 
lol
made an offer on a house back in mid-November
 
Huh
Apparently I haven't been paying attention at all.
How is your sister doing? (IIRC she had a pretty major illness, no?)
 
ok-ish. newest symptoms are affecting her sight now.
 
8:35 PM
Man that's a bummer.
 
@Mat'sMug I'll send some good wishes out for you, should send you a commemorative 6-pack for the new house as well. ;)
 
Yes, congrats on the new house!
 
thanks =)
She's got a blog on WordPress that she's slowly translating for her English friends and followers
 
@Mat'sMug Favourited. :)
 
8:49 PM
:)
 
9:02 PM
0
Q: Code that will seach an entire workbook for keywords and then print the results on another worksheet.

Caleb SuttonI was told to post my code here because it needs work. I made a search page at the beginning of a work book. This page has a drop down that allows you to choose what category to search in, then you type your phrase or keyword into the search box and it finds all of the results. It then takes thos...

 
9:51 PM
Just came across term en.wikipedia.org/wiki/Eating_your_own_dog_food. We should rename it to 'DuckFooding'
@Mat'sMug Didn't know about that. Hope she gets better.
 
10:09 PM
@Mat'sMug thinking of you and for your sister. Glad your settled in so to speak.
@ThunderFrame I think you will enjoy presenting the material and give the folks something to consider about how RD will help and expose their faults...
 
@Mat'sMug Moving and renovating in the same week?!? You are crazy brave.
 
@ThunderFrame You could say he's one odd duck for doing such.
 
11:01 PM
@ThunderFrame you mispelled exhausted ;-)
@IvenBach thanks, except she won't; MS has no cure, and her form is quite active. Every day is a surprise, good or bad.
@PeterMTaylor thanks =)
 
> Rubberduck.Setup.2.0.13.0.exe (5.83 MiB) - Downloaded 2220 times.
Last updated on 2017-03-12
> Total Downloads 12,518
 
@Mat'sMug I hope this product I'm building can sell that many downloads, then I'll quit work lmao
(It won't, my best guess is about 3. Lmao)
 
I wonder if there'd be more if the indenter page had a preview box ;-)
 
@Mat'sMug Then I hope for the best. Sorry to hear.
@EBrown Your next one will be 10, followed by, 72 and after a few more then you can retire.
Home Time!
 
Probably not.
 
11:55 PM
@Mat'sMug Possibly, I need to get on that.
 
Pity my code is only available internally. They just set up a feature branch for all the new goodies I'm doing.
 
@Hosch250 I'll probably get 1 if I'm really lucky.
 
Been learning a lot about SQL, Entity Framework, and ASP.NET.
@EBrown I was talking to Mat.
 
@Hosch250 Oh, my bad.
 
What are you building, and how much are you charging?
 
11:56 PM
@Hosch250 Can't say, and can't say lmao
 
No wonder you won't sell any.
2
 
Indeed.
 
Just a tip: bring it to the big banks--they are the ones with the money.
 
@EBrown sounds like it sells itself
 
@ThunderFrame It might.
I'm registering an LLC soon, so sh* is getting real.
 
11:57 PM
The banking industry is a major client of my company's. We have 2 or 3 big banks using our software.
 
@EBrown it's WannaCry, isn't it?
 
@Hosch250 My companies only customers are banks.
@ThunderFrame Maybe.
 
Oh, LOL.
@EBrown For yourself or your company?
 
@Hosch250 Self.
 
Oh. What are you doing with that?
 
11:58 PM
Selling a widget, duh. :P
 
What kind of a widget?
 
I can literally make ends meet if I can convince 1700 people to pay $5/mo for it, and I feel like that's completely achievable.
@Hosch250 The widget-ey kind.
 
And if we are going there, I can one-up you. My company sells whole webpages full of widgets.
 
I can actually make ends-meet at 840 people. Lol
 

« first day (1117 days earlier)      last day (2063 days later) »