+ Reply to Thread
Results 1 to 9 of 9

2004 VBA to 2008 AppleScript

  1. #1
    Registered User
    Join Date
    10-27-2006
    Posts
    15

    2004 VBA to 2008 AppleScript

    Hello!

    I have a couple of very simple VBA Macros in Excel 2004 that save me a lot of time each week. I would like to convert them to AppleScript so I can use them in Excel 2008.

    From what I understand I should be able to do this with AppleScript, but I have never used it before and have absolutely no idea what I am doing.

    Not only do I need to know how to convert the VBA to AppleScript, I need to know what to do to make it run in Script Editor, etc.

    There are two VBA Macros, each is to highlight a specified cell range, then turn on cell protection.

    It is my understanding that although I couldn't record this into my VBA Macro, AppleScript will also let me unprotect the worksheet at the beginning of the script, and then re-protect it at the end of the script. If someone can help me convert these, adding that in would be great.

    I'd really appreciate your help.

    Here is the first one called partial_lock. I would only need to have the command added to the end of this one to protect the sheet with the password = correct

    Please Login or Register  to view this content.



    Here is the second one called full_lock. This one needs to have the worksheet unprotected at the beginning with the password = correct and then it needs have the command added at the end to protect the worksheet with the password = correct

    Please Login or Register  to view this content.


    Thank you!!!!

    Kelly
    Last edited by VBA Noob; 10-17-2008 at 05:26 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello kbraaten,

    Your question is beyond the scope of this forum as AppleScript applies only to Macs and their operating systems. As Mac no longer supports VBA in the 2008 edition, you may find this web page helpful.

    Mactopia

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    10-27-2006
    Posts
    15
    Thanks Leith, I've read it all and unfortunately am too much of a newbie to put all the dots together.

    Kelly

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Kelly,

    Have you tried any posting your question with a Mac Users Group?

    Sincerely,
    Leith Ross

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    kbraaten,

    Please read forum rules below. You're code was wrapped for you this time but you still need to add the link to the other excel forum as cross posting without the link is not permitted

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  6. #6
    Registered User
    Join Date
    10-27-2006
    Posts
    15
    Sorry, thought being told I wasn't supposed to post that question here meant I should go elsewhere.

    I have also posted the question at

    http://www.mrexcel.com/forum/showthr...=1#post1717724

    Kelly

  7. #7
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Kelly,

    I found another site that may be what you need. This covers converting Excel macros into AppleScript.

    MacTech

    Sincerely,
    Leith Ross

  8. #8
    Registered User
    Join Date
    10-27-2006
    Posts
    15
    Thanks Leith! I'll definitely read it!

    Kelly

  9. #9
    Registered User
    Join Date
    10-27-2006
    Posts
    15
    Leith - you're awesome! I found everything I need and my AppleScript works perfectly!

    Not sure how to change this one to solved, but it is!

    Kelly

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Reference a cell from an another sheet which is incremental
    By pad5 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2008, 11:08 AM
  2. Insert a new row when week ends / week starts?
    By dvent in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-09-2008, 01:13 PM
  3. Advanced Timesheet
    By DaKohlmeyer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-28-2008, 04:49 PM
  4. Multiple column formula "if" function?
    By yvonnecat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-04-2008, 08:55 AM
  5. defining a years length(start and end dates)
    By wheefus in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-13-2008, 11:44 AM

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