« first day (161 days earlier)      last day (657 days later) » 

6:47 AM
hi guys i've a question.
Can you make a Workbook a public variable, and if so, How?
 
 
1 hour later…
7:58 AM
@Steelbox Hi - you can make any variable public in VBA by declaring it at module level and using a scope modifier:
    Public myWorkbook As Excel.Workbook

    Sub Test()
        Set myWorkbook = ActiveWorkbook
        SecondTest
    End Sub

    Sub SecondTest()
        MsgBox "My workbook is called: " & myWorkbook.Name
    End Sub
There's a bit more info in the docs page too:
 
 
8 hours later…
3:38 PM
@mat
just asking because you're the only one I know in a "team"
would you see any benefit to having the "team" functionality on a forum? (do you even use forums?)
@Mat'sMug good work btw
 
3:55 PM
=)
a "team"?
I don't use forums, just SE
 
StackOverflow teams - there's a RubberDuck one isn't there?
also, question is partially redundant as you don't use forums anyway!
 
there was, but SO Teams has "unshipped"
 
ah okay- never mind that then!
did it just not take off then?
 
I guess.. it was really nothing but a "here's our team" page
there was no implemented functionality whatsoever
 
tbh I never understood the reasons behind it anyway
 
3:59 PM
I think nobody did haha
 
slow dev day lol
maybe they realised that after docs they really didn't have time to be messing about!
 
 
3 hours later…
6:41 PM
You posted a question about an "object required" error, you got an answer addressing the "object required" error (and more!) - editing your question a whole week later to ask a completely different question about how to go about copying the contents of an Outlook email defeats the purpose of this site - this isn't a discussion forum, it's Q&A. If you have a new question, mark this one as accepted and then ask a new question - don't edit your post to make every previous answering effort moot. — Mat's Mug 3 mins ago
should the edit be rolled back?
 
If an edit to a question makes a previously given answer look like it's no longer relevant, then 100% roll that bad boy back
can you link?
@Mat'sMug I've done it anywya
 
thanks
 

« first day (161 days earlier)      last day (657 days later) »