IAintaBlonde.com » Visual Studio 2005

IAintaBlonde.com

Now that u know, lets get serious…………..

Calculating session time using date time stamps in vb.net

July19

Lets say your timestamp looks like this:

d1 -16:08 03-11-2006

d2 -12:00 06-11-2006
Its a pain to figure out what the studio spits out as errors, so here is long story short, the code of it!

SessionStart = DateTime.ParseExact(d1, “HH:mm dd-MM-yyyy “, Nothing)

SessionEnd = DateTime.ParseExact(d2, “HH:mm dd-MM-yyyy “, Nothing)
TotalSession = DateDiff(DateInterval.Minute, SessionStart, SessionEnd)

Now, wasnt that simple??

Yeah , worth couple of hours of a headahce!

Programmatic access to the Microsoft Office Visual Basic for Applications project system could not be enabled

June29

You Gotta Be Kiddin ME!!!!

After 3 hours of Visual Studio 2005 installation, then VSTO installation, and now this!!!!!

The error is:

Programmatic access to the Microsoft Office Visual Basic for Applications project system could not be enabled. If Microsoft Office Excel is running,k it can prevent programmatic access from being enabled. Exit Word or Excel before opening or creating a project

Anyways, here is the way to get this freaking error off the face of the monitor!!

  • Open Word/Excel (2003) :Tools>
    Macro
    >
    Security >
    Trusted Publishers >
    Check against Trust access to Visual Basic Project
  • Open Word (2007):Click on Top-most button for Office>
    WORD OPTIONS >
    Trust Center>
    Trust Center Settings
    >
    Check against Trust access to the VBA project object model>
    OK
    >
  • Open Word/Excel (2007):Click on Top-most button for Office>
    Excel Options
    >
    Trust Center>
    Trust Center Settings
    >
    Macros Settings
    Check against Trust access to the VBA project object model>
    OK
    >
    OK
  • Obvious enough exit Word & Excel & try

Overall Top Posts

Top Posts for Today

  • Recent Comments:

    • admin: Ha Ha. Glad to have saved your life., I mean your time :P
    • Naomi: TY so much! you saved my life. Well, not my life, but you saved me...
    • David M: bohzo (hello) Very, very nice site!
    • ivenxoyz: Hi I saw your blog. You have done a good job, I really liked your...
    • Monique: Are you geared up for the new season? Can’t wait!
    • Ethan: It’s easy to get caught up in the little things, isn’t it?...
    • OweEng2: I love Super Mario especially Yoshi since the Gameboy days, but I...
  • Recent Trackbacks:

    • nihotaqicetuwacn: nihotaqicetuwacn...
    • blog: hello...
    • Recipes for all: Recipe for a great treat > Tandoori Chicken !!
    • Mahdi: Comment on Network Simulation Tools: The ultimate list
    • agrotime: Handling new Hardware on Windows / Reinstalling lost drivers