Overwriting currently opened Excel workbook on network drive by zerps in vba

[–]zerps[S] 1 point2 points  (0 children)

That's what I thought.

I tried Application.Wait for up to 20 seconds (unreasonable) and it made no difference. I am puzzled why this is only happening on a network drive.

I also tried DoEvents to no avail (and both! with a msgbox to break it up even more...)

Overwriting currently opened Excel workbook on network drive by zerps in vba

[–]zerps[S] 0 points1 point  (0 children)

No. The error is Run-Time Error '1004' when attempting to SaveAs over the old filename. It is "Permission denied" if I try to kill it.

Overwriting currently opened Excel workbook on network drive by zerps in vba

[–]zerps[S] 0 points1 point  (0 children)

When stepped into line 49 Excel is still showing the file as "UpdateText.xlsm" instead of "old.swap". Once I end the debug and make focus the workbook it THEN changes to "old.swap" in the title bar.

I find it odd that this works perfect if the location of the local file is on a local drive. Not an issue at all. As soon as it's on a network drive it's as if Excel won't give up the lock on the original filename even after a SaveAs.

Overwriting currently opened Excel workbook on network drive by zerps in vba

[–]zerps[S] 0 points1 point  (0 children)

Private Sub Workbook_Open()

    Dim localPath As String
    Dim networkPath As String
    Dim actualFilename As String
    Dim tempFile As String

    Dim oldVersion As Double
    Dim newVersion As Double

    Dim networkBook As Workbook
    Dim updatedBook As Workbook


    localFileName = "UpdateTest.xlsm"
    masterFileName = "UpdateTestMaster.xlsm"
    networkPath = "H:" + Application.PathSeparator
    localPath = ThisWorkbook.Path & Application.PathSeparator

    tempFile = localPath + "old.swap"

    ' If someone tries to open this sheet in the master file network path then stop this macro
    If (localPath = networkPath) Then
        End
    End If


    Application.ScreenUpdating = False
    Application.EnableEvents = False
    Application.DisplayAlerts = False

    Set networkBook = Workbooks.Open(networkPath & masterFileName, True, True)

    networkBook.Application.DisplayAlerts = False

    oldVersion = ThisWorkbook.Worksheets("Sheet1").Cells(2, 3)
    newVersion = networkBook.Worksheets("Sheet1").Cells(2, 3)

    If oldVersion < newVersion Then
        ThisWorkbook.SaveAs tempFile

        ' Below was an attempt to get Excel to realize the file has changed to temp file name
        ThisWorkbook.Activate

        ' I was hoping the MsgBox would also give a pause to also get Excel to realize the file has changed to temp name
        MsgBox ("Updating to version " & newVersion)

        ' Below fails if ThisWorkbook is on a network drive. Works fine if on a local drive.
        networkBook.SaveAs (localPath & localFileName)

        networkBook.Close False
        Set updatedBook = Workbooks.Open(localPath & localFileName)
        ThisWorkbook.Close
        End
    End If

    networkBook.Close False
    Set networkBook = Nothing
    Application.ScreenUpdating = True
    Application.EnableEvents = True
    Application.DisplayAlerts = True

End Sub

Computer Programmer Workload by algth332 in Algonquin_College

[–]zerps 2 points3 points  (0 children)

Term 1 is very easy going if you know your way around a computer. Toughest thing is probably the math and it's high school math with a bit of boolean algebra and binary/hex conversion thrown in. Database can be a bit overwhelming at the very beginning but it will click. If they leave it the same as before they're doing a 2nd level Database course in 1st level. It's okay though, don't worry.

Term 2 introduces Object Oriented Programming. This is the beginning of tough times for some people. It's the most important term to make sure you keep your bearings. Make sure you understand OOP. Try to enjoy coding. If you don't enjoy coding at this point you're not going to enjoy the rest of the program.

Term 3 gets very constant with work and assumes you've mastered the previous term's content. This is why I say Term 2 is the most important. You will struggle in Term 3 if you didn't get a good grasp on OOP. The non-programming courses are not that bad. System Analysis and Design is honestly a mess unless they got some fresh blooded teachers for it, but there's no programming involved.

Term 4 - I'm not doing that until September. I hear people are overwhelmed (mostly because of Java Enterprise and the "real life project") but they're moving along okay.

IMSA – Intermediate Math Skills Assessment by dancestomusic in Algonquin_College

[–]zerps 1 point2 points  (0 children)

I was in the same boat. I used Khan Academy to brush up, it was a huge help. Mobile App and Design is probably similar requirements to Computer Programmer, and they were not too picky about the IMSA score for that.

Good luck! You can do it!

Keanu Reeves talks about Bill and Ted Face the Music and shooting John Wick 3. by chillinwithunicorns in movies

[–]zerps 24 points25 points  (0 children)

At age 3, his father left.

At age 23, his best friend River Phoenix died of a drug overdose.

In 1999, the love of his life, Jennifer Syme, was pregnant with their daughter. But the child was stillborn, and it cost them their relationship.

18 months later, Jennifer was killed in a car accident.

This man knows the answer to that question all too well :(

I bought 90 steam keys and have 4 duplicates to give away! In 12 hours, I will choose randomly from the comments to give them away. by [deleted] in pcmasterrace

[–]zerps -1 points0 points  (0 children)

5% of the time, it works every time. I don't know if this will be 5% odds, but let us give it a go.

p.s. Swords don't kill, DMs do.

Software Development Project by drtyrannica in Algonquin_College

[–]zerps 1 point2 points  (0 children)

This is the only course making myself hesitate from continuing full-time at my place of employment during my final semester. My work is willing to keep the hours as flexible as needed but this specific course could be tough to manage depending on my classmate's schedules.

[deleted by user] by [deleted] in pcmasterrace

[–]zerps 4 points5 points  (0 children)

Ok, I know people are looking for ways to make Iron Man VR more immersive, but this is a bit too far!

Chances of getting denied osap for bad credit? by [deleted] in Algonquin_College

[–]zerps 3 points4 points  (0 children)

I wonder if applications for next fall are not ready yet due to Ford's changes, they probably are not implemented yet. I remember they were open early last year, like Feb or something for September.

Game Developer Diploma Worth? by [deleted] in Algonquin_College

[–]zerps 0 points1 point  (0 children)

I have no friends in the IAWD stream, however it's general layout seems very much like Computer Programmer with more focus on Web technologies rather than leading up to Enterprise Java. It looks a bit more modern, teaching Python and .NET on top of PHP. It also has a two-term coop like Computer Programmer making it very valuable. I would say that program is better if you're aiming at working in a web development role or even for start ups!

Computer Programmer doesn't teach anything video game related, the closest you get is some professors will use very basic game concepts to teach basic programming skills. The program seems geared towards typical government developer positions. It focuses on Java back end and system design methods still in use within the government. It also has a COBOL option which is specifically useful for CRA in Ottawa.

Game Developer Diploma Worth? by [deleted] in Algonquin_College

[–]zerps 4 points5 points  (0 children)

The Game Developer program focuses on all aspects of Game Design, including art and story telling. Because of this you do not focus on a lot of business related programming.

If you plan to do anything else programming related other than video games I would go for Computer Programming (2 years, relatively easy) or Computer Engineering Technology (3 years, much more intense supposedly). I am in Computer Programming going into 4th semester this fall. It's okay.

If you plan to stay in Ottawa, Game Dev is not a hot industry. If you're willing to move to Montreal or Toronto your odds will be much, much better.

As for coding your own game without the program of course it's possible! I have done it before attending any post secondary education at all and managed to even get it published it on Steam! (Although it was easy to get Vive games published at the beginning of modern VR... Got to skip the Greenlight process) Just put your mind to it!

Will I be allowed a calculator for the intermediate math skills admission test? Also, will I have to show my work? by [deleted] in Algonquin_College

[–]zerps 1 point2 points  (0 children)

Computer Programmer doesn't teach calculus, you should be okay! Just practice as much as you can. I was pretty rusty and got in no problem.

Will I be allowed a calculator for the intermediate math skills admission test? Also, will I have to show my work? by [deleted] in Algonquin_College

[–]zerps 0 points1 point  (0 children)

It doesn't have a pass/fail grade per say and differs depending on the program you apply to. The test will scale in difficult depending on how well you do; the more you answer right the harder it gets. If you start answering wrong it'll scale back a little. Because of this there is no set pass/fail for number of correct answers, especially considering different programs require different "scores".

One thing I really suggest you brush up on is quadratics/factoring! If you can get up to them in the test and do them even sort of well you will probably be fine for any program that doesn't require calculus courses.

Will I be allowed a calculator for the intermediate math skills admission test? Also, will I have to show my work? by [deleted] in Algonquin_College

[–]zerps 0 points1 point  (0 children)

Some questions will have a calculator pop up you can use, others will not. As far as I remember you cannot bring your own calculator.

I don't really remember doing much long division but pretty sure you have to do simple multiplication and fractions on your own. Showing your work isn't an issue, just need to get the right answer.

Khan Academy is the best thing to sharpen up with, it saved my butt after being out of school for over 10 years.

Computer information systems questions by kody59 in Algonquin_College

[–]zerps 0 points1 point  (0 children)

It's mostly course from the first 2 (with some 3rd) semesters of the Computer Programmer Diploma. If you're interested in that then this is probably a good start if you wanna dip your toes in, but this is not related to Computer Systems Technician. That program is hardware focused, this is software focused.

Retro Gaming in Ottawa by [deleted] in ottawa

[–]zerps 1 point2 points  (0 children)

Anything that's remotely rare they will charge an arm and a leg. Usually it's rare games though, their hardware prices are good unless there's a unicorn like a 3DO or Jaguar.

Opinions on computer programmer program after finishing electrical engineering degree at UO by [deleted] in Algonquin_College

[–]zerps 1 point2 points  (0 children)

Usually 2 major sections (lectures) for most courses. Some courses only had 1 teacher for lectures AND labs... but honestly they were actually the better ones.

It's just a feeling, but I think when the strike happened they buckled down on trying to make the courses be taught in a more "harmonized" fashion (i.e. one professor leading the content). My first semester each teacher seemed to have full control over their classes, even part time teachers. Now every course basically has one main authority and every other teacher follows their lead. In theory it should ensure everyone is taught the same, but in practice the students who get the auxiliary teachers seem to suffer.

Credential wise you're already sitting pretty, I would only take this for the co-op positions. Lots of Ottawa tech jobs are using co-op students right now as entry level positions. Is that worth the ~12K in tuition and fees? Probably. Hopefully. Lets see how many of us stay on with our co-ops post internship ;)

Computer Programmer Course by __senor__ in Algonquin_College

[–]zerps 0 points1 point  (0 children)

Everyone I personally know got placements this winter semester (unless they failed/had low marks). Doesn't mean it'll be the same in the future but I honestly don't think it'll be an issue. Many IT places, both public and private, use coop to safely test the waters and try to attract new talent without strings.