• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Search results

  1. dan_l

    retrieving data from mails(outlook) using excel/vba

    sam are you pretty good with outlook vba?
  2. dan_l

    Persistent variable in a userform...

    Ok, check this out: It's kind of a neat workaround since your variables evaporate as soon as the code is finished running. Sub MoveArrayToName() Dim rData As Range Dim avData As Variant Set rData = Sheets("data").UsedRange avData = rData ThisWorkbook.Names.Add Name:="MyData"...
  3. dan_l

    Persistent variable in a userform...

    Ahk, I appreciate the links. They helped. So, as it turns out, there doesn't seem to be a way to save variables that will last through multiple 'stages' of what's happening in the userform. Redefining all of that stuff sort of sucked and made my embarrassingly bad userform code even worse...
  4. dan_l

    send a set of data available in the excel sheet for different recipient (individually)

    I think you want to split the workbook up by customer and then send the email.
  5. dan_l

    Persistent variable in a userform...

    Hi, I'm working on a userform. It's actually there to configure some functionality. It's got some dynamic listboxes. Anyway, so step 1: uses a refedit to get a range. User selects a range, presses a button. The range is passed to a array. The headers of the selected range are put into...
  6. dan_l

    Excel "dashboard/tool" to be deployed to other users : Suggestions ?

    On a scale of 1 to 10, how computer savvy are your users?
  7. dan_l

    Changing workbook full of "shouty capitals" into proper case

    Sorry, that didn't come out right: lower - returns all lower case upper - returns all upper case proper - returns it in what excel thinks will be proper case.
  8. dan_l

    Changing workbook full of "shouty capitals" into proper case

    lower() upper() proper() THE the THE The QUICK quick QUICK Quick BROWN brown BROWN Brown FOX fox FOX Fox JUMPED jumped JUMPED Jumped
  9. dan_l

    VBA code to screen digits and perform action

    The last 2 look like the same condition. I would do this with a function. This will do it with a function: Function something(c1 As Range, c2 As Range) Dim sHolder As String Dim sResult As String sHolder = Left(c1.Value, 1) Select Case sHolder Case sHolder = "0" sResult = Left(c2, 6)...
  10. dan_l

    Give array a Name and use in code

    I'm still not getting it? dim avList as variant dim rList as range set rlist = sheets("sheet1").range("a1:a3") avlist = rlist
  11. dan_l

    Saving a file within a Macro

    This part is easy. Just set your save as string and your file path to be what you want. I've got a sample I can share laying around and I'll dig it up for you.
  12. dan_l

    Displaying file name and its info from a cell

    weird. was it an ooo doc originally?
  13. dan_l

    Email notification about copying

    I don't think excel can help help you with the first idea. You might want to see if your shared location has some security settings that would help. As for the second idea, you can add a worksheet with the file path that it's currently saved in, add some simple code to check this sessions...
  14. dan_l

    Selecting and putting data in columns

    sir bj: what does const do?
  15. dan_l

    Multiple CSV to Access

    gosh this sounds tricky: if one of those csv files is a little off it will jack up everything. Power query supports some nifty administrative joins. You'd still have to do each one manually, working with 100 files, something is bound to go wrong.
  16. dan_l

    Cascading Data Validation with Dynamic Named Ranges

    i thought like that once.
  17. dan_l

    Dynamic Date Range Charting VBA

    sorry buddy, I don't really understand what we're trying to do here. But making a chart or adjusting some ranges with vba isn't that hard....
  18. dan_l

    Pull data from XML file to excel

    It depends exactly on what you're trying to do. I think powerquery and excel's onboard xml mapping both feature a refresh button somewhere, so you could definitely just use the recorder to see what that button actually does. I'd expect that it would be like...
  19. dan_l

    Saving a file within a Macro

    wouldn't you rather just tell it where to save the file rather than just going with the dialog box?
  20. dan_l

    Dynamic Date Range Charting VBA

    what's this "number of days to see" stuff all about?
  21. dan_l

    Pull data from XML file to excel

    There should be a million ways to do it! PowerQuery in 2010/13, 07 has some specialized functionality for working with xml. You might be able to find a way to trick MSQT into doing it too.
  22. dan_l

    Dynamic Date Range Charting VBA

    It's not hard to fill a range and name it for a chart in VBA. Hui's right though, a lot of times this stuff will last longer if you do it with formulas. I still don't understand what you want the output to look like though. Can you update your file with a sample of the chart?
  23. dan_l

    vsto

    I'm just curious here: Does anybody have any experience building excel stuff in studio? I don't have a specific question, I'm just curious if anybody has any good/bad experiences writing automation like that?
  24. dan_l

    Vlookup or Index,Match solution for a template

    imo, get pivot data is one of the most underrated formulas. To make this be a bit easier to manage day to day, get rid of those big merged cells on the left hand side.
  25. dan_l

    Sorting array of dates

    admittedly hacky, but not bad for having not yet finished my cup of coffee: Sub sort() Dim avSource() As Variant Dim alHolder() As Long Dim albuffer() As Long Dim rSource As Range Dim rOP As Range Set rSource = Sheets("sheet1").UsedRange avSource = rSource ReDim alHolder(1 To...
Back
Top