Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-22-2016, 03:22 PM
Highlander Highlander is offline Newbie VBA question re Excel 2016 Windows 10 Newbie VBA question re Excel 2016 Office 2013
Novice
Newbie VBA question re Excel 2016
 
Join Date: Jan 2016
Location: Scotland
Posts: 2
Highlander is on a distinguished road
Default Newbie VBA question re Excel 2016


Should I write some VBA scripts & Macros in Excel 2016, how can I ensure that the saved file scripts will operate OK on PCs with a mix of Excel Versions , namely 2007, 2010, 2013 and 2016.
Any help appreciated
Reply With Quote
  #2  
Old 01-22-2016, 06:37 PM
macropod's Avatar
macropod macropod is offline Newbie VBA question re Excel 2016 Windows 7 64bit Newbie VBA question re Excel 2016 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Simply write the code to suit the earliest version you'll be supporting. In reality, the code for most of what you'd want to do would most likely work with all versions back to Office 2003 & earlier.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 01-22-2016, 07:34 PM
Highlander Highlander is offline Newbie VBA question re Excel 2016 Windows 10 Newbie VBA question re Excel 2016 Office 2013
Novice
Newbie VBA question re Excel 2016
 
Join Date: Jan 2016
Location: Scotland
Posts: 2
Highlander is on a distinguished road
Default

Many thanks for responding.
"Simply write the code to suit the earliest ...." seems a bit of a tall order for a VBA "newbie" and suggests that I would need to know of any subtle differences between the 4 versions of Office! I was hoping there might be a parameter somewhere that I could set to limit the generated code to match the earliest Office version.
Naturally I will test my newbie VBA output on the four Office versions.
I'm managing a wry smile as I'm not sure I share your confidence that...
"most of what I'd want to do would most likely work"
Thanks again.
Reply With Quote
  #4  
Old 01-22-2016, 08:02 PM
macropod's Avatar
macropod macropod is offline Newbie VBA question re Excel 2016 Windows 7 64bit Newbie VBA question re Excel 2016 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Since you apparently have access to multiple versions, try doing your development on the oldest one. Beyond that, if you're working on a more recent version and you're not sure when a particular feature was introduced, check the VBA help entry for it; often times there'll be an entry indicating which version it was introduced with. Regardless, you'll need to confirm your code actually works on all supported versions - in addition to features being added, features also sometimes get deprecated.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie VBA question re Excel 2016 Excel Newbie Question: .dbf file import help - 1 mil+ rows LisaExcelHelp Excel 1 01-26-2015 07:39 AM
Newbie VBA question re Excel 2016 Newbie Question thistlebarrow PowerPoint 4 04-06-2012 01:46 PM
Newbie VBA question re Excel 2016 newbie question DanSandbergUCONN Word 5 03-06-2011 04:27 PM
Newbie VBA question re Excel 2016 Newbie to Powerpoint question Phil66 PowerPoint 9 06-01-2010 10:51 AM
Perhaps a newbie question I know but as1947 Excel 0 02-05-2009 08:01 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:37 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft