• WSmikemay

    WSmikemay

    @wsmikemay

    Viewing 15 replies - 16 through 30 (of 38 total)
    Author
    Replies
    • in reply to: Module names (Office 2000 VBA) #743705

      Thanks, that worked fine. I should have thought of the Properties window.

    • in reply to: Module names (Office 2000 VBA) #734374

      Thanks, but I had already tried right-clicking on the module name. Project Properties are available, but not module properties. By the way, I’m running VB 6.0, version 8435.

    • in reply to: Module names (Office 2000 VBA) #734375

      Thanks, but I had already tried right-clicking on the module name. Project Properties are available, but not module properties. By the way, I’m running VB 6.0, version 8435.

    • in reply to: BAT file to ping IP and record reply #730189

      R2,

      I considered setting up Karen’s NetMonitor a couple of months back, when we were having ISP troubles at the office, but ended up with a conundrum: how do I get email notification when the ISP is down? As far as I could tell, her Mailer II program wouldn’t work with Windows Messaging. Admittedly, I haven’t gotten around to emailing her about this.

    • in reply to: BAT file to ping IP and record reply #730190

      R2,

      I considered setting up Karen’s NetMonitor a couple of months back, when we were having ISP troubles at the office, but ended up with a conundrum: how do I get email notification when the ISP is down? As far as I could tell, her Mailer II program wouldn’t work with Windows Messaging. Admittedly, I haven’t gotten around to emailing her about this.

    • in reply to: Downloading from a site (VBA Word 2000) #671803

      Hans,

      I believe you are correct. GetSetting and SaveSetting only work with

      HKEY_CURRENT_USERSoftwareVB and VBA Program Settings

      according to John Walkenbach’s book on Excel 2000 VBA programming. I’ve used these functions successfully to stash settings for my VBA programs, which is probably their intended purpose. I’m thinking that Charlotte didn’t mean to imply that they could access ANY setting in HKCU.

    • in reply to: Need to download complete IE installation (Win 95) #645182
      ie5.freeservers.com

      contains a link that didn’t work for me. However, the Internet Explorer home page (sort of) works. Over on the right side are the links to IE6SP1 and IE5.5SP2. You can get to IE5.01 via the Downloads menu on the left. The IEAK page is accessible from the Related Technologies menu on the left.

      Each of these IE links downloads a loader/installer program that is 450-500K (e.g., ie6setup.exe). If you select the radio button for

      Install Minimal, or customize...

      and click on

      Advanced...

      it supposedly will let you download the “Full” version for later installation (I think it’s really the “typical” version–the ie6sp1 download was 25.9MB). The problem is, how do I install it? The setup program still wants to go to the internet, even if I choose Minimal installation. I had the same problem with all three versions (5.01, 5.5 and 6) on Win98SE.

      I tried to run IEAK6, but it said I needed IE6 first. Catch-22!

      Any suggestions? I also need IE only for system libraries used by other programs.

    • in reply to: Windows Hangs #624117

      (Edited by mikemay on 14-Oct-02 21:50. )

      Microsoft no longer has RegClean on its web site, but you can get RegClean 4.1a from other folks who have posted it. Just run a search in Google (or your favorite search engine). A couple of other utilities that claim registry-cleaning functionality are referenced at http://is-it-true.org/nt/atips/atips53.shtml%5B/url%5D. It’s a good idea to back up your registry before running it.

      I meant to add that there is some user commentary on RegClean at http://download.com.com/3302-2094-881470.html?tag=mta%5B/url%5D. You might consider the comments before proceeding.

    • in reply to: Simple On/Off for DSL #619945

      If you were running Internet Connection Sharing (which you probably aren’t, since you don’t have a home network), I think there is an icon in the lower right that allows you to disable/enable ICS on your (client) machine.

      Did your LinkSys Router come with any kind of management/troubleshooting software? That might be an angle to try.

    • in reply to: GIF to JPEG #619920

      In IrfanView, you can adjust the degree of compression using the Options button in the SaveAs dialog box. There’s also a tab for using lossless compression in JPEG2000 format, which I haven’t tried.

      Sometimes resampling an image can help. Select Resize/Resample on the Image menu. You might also try this after Increase Color Depth (also on the Image menu). You can’t really get better “resolution” of a blurry image this way, but the eye can interpret increased color depth as equivalent to an increased pixels density.

      You could also try the Sharpen command on the Image menu.

      Good luck, and let us know if any of these techniques help.

    • in reply to: numeric formatting without decimal point (XL2000) #612878

      bravo
      You are absolutely correct. So somebondy read my code after all! Thanks.

    • in reply to: numeric formatting without decimal point (XL2000) #612867

      Gentlemen,

      Thank you for your suggestions. I was hoping that Excel could handle what I wanted directly, but (as Steve pointed out) it appears that it doesn’t. However, I adapted Peter’s suggestion to set the format based on the results of “casting out ones.” This appears to give the look that I want (at least on the test data that I’m using grin). I had to write my own function (dModD) to perform the modulo division on Doubles, since the VBA mod operator and CLng() function both round round floating point inputs, instead of truncating them. That coding was pretty straightforward, though.

      The discussion of side effects on the ability to do calculations was also very informative. It hadn’t occurred to me that one could get a useful numerical result by “adding” text strings. After playing with it, I was even more surprised that it gave the correct answer when SUM() wouldn’t! shocked

      'if value is within 1 min. of an hour then format without decimal point
      If dModD(Cell.Value, 1)  0.983 Then
          Cell.NumberFormat = "0"
      Else
          Cell.NumberFormat = "0.##"
      End If
      

      Another interesting aspect of this discussion is what I left out of my question (because I didn’t realize that it was relevant blush). My worksheet is generated by VBA code, using data that were generated by another program. The worksheet’s purpose is to format/present and in some cases to graph that data, so calculations aren’t necessary. My user is in the US, so the international issues won’t matter. It’s always good to know the limitations of pieces of code, though, because somehow they seem to get re-used.

    • in reply to: Custom sort order in VBA(XL2000) ? (VBA Excel2000) #612839

      clapping Hmm, that looks a lot more elegant than the function I wrote. Why would anyone object? Because of the GoTo?

      My code looks to see whether there are any user-defined custom lists. If any are present, it checks those lists to see if the first and last entries are those of my list. If not, it creates my list from a worksheet. I’d still have to do some of that in my error handling routine, but that still might have been a better approach. However, since it’s working, I’ll leave it alone. Thanks.

      Function lMakeCustomList(rgListData As Range) As Long
      '
      'Checks to see if custom list containing "Walnut" and "Production Alternate" already exists.
      'Creates it from "hard-wired" range in StationInfo if it does not.  Returns List Number.
      'VBA NOTE: Contrary to Help, AddCustomList method fails if list already exists.
      '26-Aug-2002 M.L.May -- working procedure with argument and variant list array
      
      Dim lLists As Long                          'number of Custom Lists
      Dim l As Long                               'list counter
      Dim i As Integer                            'generic loop counter
      Dim bFound As Boolean                       'true if station list was found
      Dim ListArray() As Variant                  'variant array to hold Custom List
      
      'if lList > 4 then custom lists exist, so check 'em all for first and last entries
          Application.StatusBar = "Looking for Custom List
    • in reply to: Custom sort order in VBA(XL2000) ? (VBA Excel2000) #612433

      Hans,

      It’s interesting that AddCustomList doesn’t fail in XL97. I had to make an ugly work-around in XL2000 to account for the case in which the list had already been created.

      And regarding the constants, I guess it’s a matter of semantics on the names. I suppose one could consider “sorting a row” to mean sorting the elements in the rows, i.e. sorting from left to right. On the other hand, “sorting BY rows” seems to me to mean something different. Oh, well, now I know what Microsoft means by it. Thanks.

    • Hmmm hmmn. Depending on how your program code works, you may want to load it after the data.vzg file, and modify your code to operate on the previously-opened .vzg workbook.

    Viewing 15 replies - 16 through 30 (of 38 total)