Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old November 29th 19, 11:01 AM posted to microsoft.public.excel.programming
external usenet poster
 
First recorded activity by ExcelBanter: Mar 2015
Posts: 9
Default Getting Office Version Number from Excel VBA

Hi,

I am using verNum = Application.Version to pull the current office version, without declaring the variable it brings in 16.0, when declaring this as a single it only brings in 16, 16.0 is required as I am using this to read & write registry setting.

TIA for any help on this

Raymond

  #2   Report Post  
Old November 29th 19, 12:33 PM posted to microsoft.public.excel.programming
external usenet poster
 
First recorded activity by ExcelBanter: Sep 2016
Posts: 14
Default Getting Office Version Number from Excel VBA

On 29/11/2019 10:01, Raymond Allan wrote:
Hi,

I am using verNum = Application.Version to pull the current office version, without declaring the variable it brings in 16.0, when declaring this as a single it only brings in 16, 16.0 is required as I am using this to read & write registry setting.


Declare the variable as Variant

--
Adrian C
  #3   Report Post  
Old December 2nd 19, 12:11 PM posted to microsoft.public.excel.programming
external usenet poster
 
First recorded activity by ExcelBanter: Mar 2015
Posts: 9
Default Getting Office Version Number from Excel VBA

On Friday, 29 November 2019 11:33:55 UTC, Adrian Caspersz wrote:
On 29/11/2019 10:01, Raymond Allan wrote:
Hi,

I am using verNum = Application.Version to pull the current office version, without declaring the variable it brings in 16.0, when declaring this as a single it only brings in 16, 16.0 is required as I am using this to read & write registry setting.


Declare the variable as Variant

--
Adrian C


Thank you


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What version of Excel comes with Office 2003? Tom Excel Discussion (Misc queries) 4 July 28th 09 01:25 AM
Excel Services help - any trial version of Office Pro PLUS ? Colin[_2_] Excel Discussion (Misc queries) 1 November 30th 07 08:56 AM
How to obtain Excel (or Office) FULL Version? Bathan Excel Programming 7 July 20th 06 04:57 PM
What version of Excel comes with Office 2004 for Mac? jetsonsally Excel Discussion (Misc queries) 2 May 9th 06 03:43 PM
Office automation application which will work with any version of office C#.NET Silly Programmer Excel Programming 1 February 21st 04 11:54 AM


All times are GMT +1. The time now is 02:32 PM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2004-2019 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"

 

Copyright © 2017