+ Reply to Thread
Results 1 to 9 of 9

IF office version..

  1. #1
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    919

    IF office version..

    Hello

    How to get office version into IF

    IF office version = 2016 then..
    IF office version = 2019 then..
    IF office version = 2021 then..

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: IF office version..

    dont understand the question ?

    is this how to BUY office versions
    or how to use

    or is it how to use an IF() function in those versions - IF() is used the same in all 3 versions

    A sample sheet would help here

    The forum does allow for spreadsheets to be uploaded direct to the forum -

    Please see the Yellow Banner at the top of the page explaining how to attach a sample spreadsheet

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Here are the instructions, found at the top of the page again
    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    919

    Re: IF office version..

    I need vba to get office version inside IF statment

    If office version is 2016 then do.....
    end if

    If office version is 2019 then do.....
    end if

    If office version is 2021 then do.....
    end if

    thats what I mean

  4. #4
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: IF office version..

    .
    Hi. Are you looking for this?

    MsgBox "Welcome to Microsoft Excel version: " & Application.Version
    You are always very welcome if you add reputation by clicking the * (bottom left) of each message that has helped you.

  5. #5
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    919

    Re: IF office version..

    Almost there

    if Application.Version = "X" then....

    Which number mean version 2016,2019,2021?

  6. #6
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: IF office version..

    .
    Maybe the following link will help you: Check the application version in Modern Office

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: IF office version..

    I'm using:

    Microsoft Excel for Microsoft 365 MSO (Version 2304 Build 16.0.16316.2000) 64 Bit

    Microsoft 365 Insider Beta Channel

    Application.Version shows 16.0 for me.

    Ken Puls' code from the attached link shows 365.

    https://excelguru.ca/check-the-appli...comment-354105


    Slightly modified version of the code and a calling routine:

    Please Login or Register  to view this content.
    MsgBox shows 365
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  8. #8
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: IF office version..

    ???
    Please Login or Register  to view this content.

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: IF office version..

    Thanks to @mjr veverka for filling in the gaps in Ken Puls's function.

+ 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. Font changes after change office version
    By Undo in forum Excel General
    Replies: 0
    Last Post: 03-09-2023, 11:43 PM
  2. MS office version 7 or 10
    By jenniferJ in forum Excel General
    Replies: 3
    Last Post: 01-08-2018, 01:27 PM
  3. Office 2007 Old vs New version
    By rohnds in forum Excel General
    Replies: 8
    Last Post: 03-29-2016, 07:25 PM
  4. version office
    By ilkamalo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2010, 12:19 PM
  5. [SOLVED] next office version...when?
    By Peggy in forum Excel General
    Replies: 2
    Last Post: 08-19-2005, 06:05 PM
  6. Replies: 2
    Last Post: 08-18-2005, 11:05 PM
  7. [SOLVED] How to determine Office version
    By VanS in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-03-2005, 04:06 PM

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