Results 1 to 7 of 7

Thread: Need Code Translated to Basic

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Posts
    492

    Need Code Translated to Basic

    I have the following macro in MS Excel, i need it translated into Basic so that i can run the same macro on Open Office.

    Can anyone help.

    Code:
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$A$2" Then
    Dim Msg, Style, Title, Response
    Msg = "Do you want to update YTD?"
    Style = vbYesNo + vbQuestion
    Title = "Earnings"
    Response = MsgBox(Msg, Style, Title)
    If Response = vbNo Then
    Exit Sub
    Else
    [d2].Formula = [d2].Value + [c2].Value
    End If
    End If
    End Sub

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Need Code Translated to Basic

    Visual Basic?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Posts
    492

    Re: Need Code Translated to Basic

    I dont know what basic, i dont think it is visual basic. When i go into Open Office the editor just says Basic. This is my first time using Open Office yet alone write a macro, and if i put in my excel macro in it, it doesnt work.
    Last edited by mrstuff68; Jun 24th, 2005 at 01:39 PM.

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Need Code Translated to Basic

    I don't think it's a Basic language.... I think it means Basic mode vs. Advanced mode... ???

    Tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Need Code Translated to Basic

    What is "Open Office"?

    I'll see if I can find something that might point you in the right direction.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Posts
    492

    Re: Need Code Translated to Basic

    Open Office, is like a freeware version of MS Office. Its just like MS Office it opens up all the documents that are generated in MS Office, but it is free. Seems to me its like Linux is an alternative to Windows.

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Need Code Translated to Basic

    It's cross platform... I use ot at home from time to time. http://openoffice.org -- it's lineage comes from StarOffice from Sun. They took a basline of it, shifted it over to open source, renamed it OO. Now it's run by a group much the same way Mozilla/Fx is run.

    Tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

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



Click Here to Expand Forum to Full Width