ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    VBA Problem

    Scheduled Pinned Locked Moved IT Discussion
    9 Posts 5 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • garak0410G
      garak0410
      last edited by

      I hesitate to ask VBA questions because they are usually so customized to the business people are in.

      We have a major Excel/VBA project that I had to update code in to point to our new file server when we migrated a few weeks ago. The spreadsheet attaches a XLA file to a project each time it is opened. So, the info in the XLA file is there and updated.

      Somewhere along the line, it updates the Excel Object ThisWorkbook. All of the older spreadsheets (pre new file server) open with the updated XLA file but old server info in the ThisWorkbook object. So that one part of the older project refers to the old server and beyond changing every old job which would be an astronomical task, I tried searching that XLA file to see when it may put that info in there and can't seem to find it.

      The work around was to turn back on the share on the old server that references in the ThisWorkbook object could be accessed and reached.

      So it is kind of weird...and without someone seeing this entire code, it may be hard to figure this one out...

      JaredBuschJ 1 Reply Last reply Reply Quote 0
      • JaredBuschJ
        JaredBusch @garak0410
        last edited by

        @garak0410 10 years ago I was doing Excel VBA stuff for a living, but I no longer recall a lot of it unless I look at the code itself.

        1 Reply Last reply Reply Quote 0
        • DashrenderD
          Dashrender
          last edited by

          How far away from turning off the old server are you? Once you turn it off (or can rename it) you can put in a CNAME in your DNS pointing to your new server to solve this problem.

          garak0410G 1 Reply Last reply Reply Quote 0
          • garak0410G
            garak0410 @Dashrender
            last edited by

            @Dashrender said:

            How far away from turning off the old server are you? Once you turn it off (or can rename it) you can put in a CNAME in your DNS pointing to your new server to solve this problem.

            This was my plan "B" for sure...I guess I can start working on the remainder of the DC migration...

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              I've never written VBA. Did some VB6 in the 90s but that was the last time that I saw BASIC.

              1 Reply Last reply Reply Quote 0
              • NetworkNerdN
                NetworkNerd
                last edited by

                Man, I can completely identify with the problem you're having. We have an Estimating tool that is much the same. If you change the code in the master template, it's near impossible to propagate that change to every other spreadsheet that already exists. There may have been columns added, etc., and that can make things even more complicated.

                garak0410G 1 Reply Last reply Reply Quote 0
                • garak0410G
                  garak0410 @NetworkNerd
                  last edited by

                  @NetworkNerd said:

                  Man, I can completely identify with the problem you're having. We have an Estimating tool that is much the same. If you change the code in the master template, it's near impossible to propagate that change to every other spreadsheet that already exists. There may have been columns added, etc., and that can make things even more complicated.

                  I agree when I finally demote that old server and use a CNAME, the problem will be resolved. The new file server has an alias so it will make the next migration much easier.

                  It still doesn't change the fact that our backbone to our panels, purlins and roofs are all determined by an extremely messy and complicated VBA project. For someone who isn't a developer and just doesn't have the time to study (believe me, I've tried), it will be a herculean effort to convert this to another format one day. I've been able to enhance it here and there but not by much.

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    What's holding up the decomm at this point? Are there still services relying on the old box?

                    garak0410G 1 Reply Last reply Reply Quote 0
                    • garak0410G
                      garak0410 @scottalanmiller
                      last edited by

                      @scottalanmiller said:

                      What's holding up the decomm at this point? Are there still services relying on the old box?

                      Just crazy busy with SOLO IT guy stuff...

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post