+ Reply to Thread
Results 1 to 22 of 22

Migration problems from Excel 93 to Windows 7/ Excel 2010

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Migration problems from Excel 93 to Windows 7/ Excel 2010

    Hello everyone.

    I am currently working on a project that is two-fold in purpose:
    1. Maintain an application tool that uses (or operates) on the following platform: Excel 1993, Access 2003 and LotusNotes (a mid 90's version). The application tool was written with VBA 5.
    2. Redevelop that application tool so that it operates on the following platform: Windows 7, Excel 2010, Access 2010, and Microsoft Outlook 2010. Presumeably I will be coding in VBA 6 or VBA 7.

    Now the application relies extensively on writing and reading data from Excel to Access. It also allows user to manipulate the application tool by using a calander ( Calander Control Object 8.0)

    I am aware that the calander control object will not work as that object has been removed from the reference library for Office 2010 products. (Am I correct on this ?) So I know this will be an issue.

    Furthermore I am aware that there will be connection issues with Excel 2010 and older versions of Access.

    I currently have not attempted to simply "open-up" the application tool and see if it runs in the new enviroment. I no that it will not !

    I am just looking for some general advice (project management) to go about getting this done properly and promptly. I am working with approximately 6,000 lines of code.

    Thanks in advance.
    Last edited by AnthonyWB; 11-29-2010 at 10:36 AM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,016

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    There's no simple answer (other than that Excel 1993 doesn't exist). You will have to open, compile and fix any glaring errors that way. Then try running it. If the program is well written, it shouldn't be that big an ordeal.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    Excel 1997, my bad thanks.

  4. #4
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    romperstomper

    Thanks for your suggestion. I opened the application on the new platofrm, and recieved the following compile error:

    "Can't find project or library"

    Public Sub FillDataTable(DataTable As String, rs As Recordset) <------ Error
        Dim TableRow As Integer
        ClearTable DataTable
        If Not rs.EOF Then
            rs.MoveFirst
            TableRow = 1
            Do While Not rs.EOF
                TableRow = TableRow + 1
                For K = 0 To rs.Fields.Count - 1
                    If rs.Fields(K).Name <> "TMID" Then
                        Sheets(DataTable).Cells(TableRow, K + 1).Value = rs.Fields(K).Value
                    End If
                Next
                rs.MoveNext
            Loop
        End If
    End Sub
    Any suggestions?

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,016

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    Check under Tools-References in the VB Editor - one or more of the checked references will start with 'MISSING:' and you will need to update or remove any that don't work.

  6. #6
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    Right I did that ( I was double checking). I am missing the following two references:

    1. Microsoft Calander Control Object 8.0
    2. fpdtc 1.0 Type Library

    Item (1) is not available. Item (2) I have never heard.

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,016

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    Correct - the Calendar control is no longer packaged with Off2010 - see this page near the bottom.

  8. #8
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    Thanks a lot romperstomper. I am not to familiar with calander controls, but what is a "date picker" ?

  9. #9
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,016

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    It's another control, similar to a Calendar control, but again it is not available on all machines, so unless you can package it and distribute it, or guarantee that all the target machines have it, it may not help you.

  10. #10
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    I was going to focus on the machine that I am on and then worry about distributing it. Here is the current code that controls the calander function.

    Where can I find the date picker control? Thanks.

    Option Explicit
    
    Dim DataSource As String
    Dim DataRow As Integer
    Const UNSUCC As String = "Closed-Unsuccessful"
    Const FUTURE As String = "Closed-Future Prospect"
    Const START As String = "StartDate"
    Const COMMIT As String = "CommitDate"
    Const NoteDate As String = "NoteDate"
    Const NOBID As String = "Closed-No bid"
    Const SUCC As String = "Closed-Successful"
    Const OppOPEN As String = "Open"
    Public Property Let Source(val As String)
        DataSource = val
    End Property
    Private Sub UserForm_Initialize()
        Calendar1.Value = Sheets("Validations").Range("N2").Value
        Calendar1.TitleFont.Bold = False
        Calendar1.TitleFont.Size = 10
    End Sub
    Private Sub Calendar1_Click()
        Dim ValidDate As Boolean
        
        Select Case DataSource
            Case FUTURE, UNSUCC, OppOPEN, SUCC
                ValidDate = (Calendar1.Value > Date)
                If Not ValidDate Then
                    MsgBox "Please set a Followup Date in the future"
                End If
            Case NOBID
                    ValidDate = (Calendar1.Value > Date)
                    If Not ValidDate Then
                        MsgBox "You must set a Date in the future, for Closed-No Bid"
                    End If
            Case START, COMMIT
                ValidDate = True
                Select Case DataSource
                    
                    Case START
                        If Calendar1.Value > Date Then
                            ValidDate = False
                            MsgBox "You may not set a Start Date in the Future", vbCritical, "Invalid Opportunity Start Date"
                        End If
                    Case COMMIT
                        ValidDate = (Calendar1.Value >= CDate(frmOpportunity.StartDate))
                        If Not ValidDate Then
                            MsgBox "Please set the Commit Date AFTER the Start Date", vbCritical, "InValid Opportunity Commit Date"
                        End If
                End Select
            Case NoteDate
                ValidDate = (Calendar1.Value <= Date)
                If Not ValidDate Then
                    MsgBox "You may not date a Note in the Future", vbCritical, "Invalid Note Date"
                End If
    
        End Select
            
        If ValidDate Then
            Select Case DataSource
                Case START, COMMIT
                    Select Case DataSource
                        Case START
                            frmOpportunity.StartDate = CStr(Calendar1.Value)
                        Case COMMIT
                            frmOpportunity.CommitDate = CStr(Calendar1.Value)
                    End Select
                
            Case NoteDate
                frmOpportunity.NoteDate = CStr(Calendar1.Value)
            Case FUTURE, NOBID, UNSUCC, OppOPEN, SUCC
                UserForm11.FollowupDate = CStr(Calendar1.Value)
            End Select
        End If
        Unload Me
    End Sub
    Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
        Select Case DataSource
            Case FUTURE
                If Calendar1.Value <= Date Then
                    ' A FUTURE Date must be provided for Closed-Future Prospect
                    Cancel = 1
                    MsgBox "You must set a FollowUp Date in the future for this type of Closure action"
                End If
            Case START
                If Calendar1.Value > Date Then
                    ' A FUTURE Date must be provided for Opportunity Start Date
                    Cancel = 1
                    MsgBox "You must set a Start Date which is not in the Future"
                End If
        End Select
        
    End Sub

  11. #11
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,016

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    If you have it, you'll find it by:
    1. Set a reference to the Microsoft Windows Common Controls 2 (you may need to browse to the MXCOMCT2.ocx file in your System32 folder)
    2. Then right-click a form, choosing 'Additional controls...' then selecting 'Microsoft Date and Time Picker Control 6.0' from the list.

  12. #12
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    I do not have that control? How can I get it ?

  13. #13
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,016

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    Did you set the reference to 'Microsoft Windows Common Controls-2'? (note: it's not in 'common controls', only in 'Common Controls-2'

  14. #14
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    This is new to me. So, how would I set my references to 'Microsoft Windows Common Controls-2'?

  15. #15
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,016

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    As I mentioned earlier: Tools - References, look for it in the list. If it's not there, click Browse..., navigate to your C:\Windows\System32 folder if it doesn't default to there anyway, change the file type dropdown to show .ocx files and locate the MSCOMCT2.ocx file.

  16. #16
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    Yeah, I did that and it's not there?

  17. #17
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,016

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    if you don't have that file, then you're out of luck, I think, as I don't believe it's freely distributable. I'm a little surprised it's not there though.

  18. #18
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    I followed you closely, and it simply is not there. Does something need to be downloaded?

  19. #19
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    How can it not be there? Was it "released" under a service pack, and perhaps my company never updated to the new package?

  20. #20
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    Note that I do have Microsoft Common Controls 6.0

  21. #21
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,016

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    It appears you can download it from Microsoft here.

  22. #22
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Re: Migration problems from Excel 93 to Windows 7/ Excel 2010

    Yeah: http://social.msdn.microsoft.com/For...6-1438e0e736a4 here also. Thanks let me hammer this out. Later.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1