Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-28-2018, 05:36 PM
JuddH99 JuddH99 is offline VBA Novice Windows 10 VBA Novice Office 2016
Novice
VBA Novice
 
Join Date: Jun 2018
Posts: 6
JuddH99 is on a distinguished road
Default VBA Novice

Hi, so I want to create a template with a few different controls in it.
Although I don't really know what I'm doing, I was able to create a Sub function that upon clicking Run would prompt to save my file with some criteria. However, this is just some code I found on the web.

What I really want is for the save file prompt to auto-populate the file name with today's date (18/06/28) and then what is selected from a drop down menu. I can Title the drop down menu as VehicleDrop.

I can't figure this out and I also cannot figure out the next part.

I need a Command Button that is really a Save button to get this into action.
For the life of me, I cannot figure out how to:
1) Save a macro, even though I can get the Sub function to run by clicking Run, I do not want everyday users of the template to do that. I need it to save as a macro so that


2) Map the macro to the Save button so they can press it to save the file as desired.

Can anyone help with the code for this? It would be greatly appreciated.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recommended Reading for Novice callasabra Word VBA 3 07-06-2014 10:36 AM
VBA Novice Please help this novice. cupofjoe1962 Excel 2 09-16-2013 12:17 PM
VBA Novice Chart novice - help required clanger32 Excel 1 04-12-2012 09:35 AM
VBA Novice having problems with colours. Simoninparis Excel Programming 2 02-29-2012 03:28 AM
Two questions from a novice alexB Word 0 08-11-2010 08:47 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:54 PM.


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