Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-11-2017, 05:16 PM
AXbean AXbean is offline VBA code to mimic F4 (Repeat) command? Windows 10 VBA code to mimic F4 (Repeat) command? Office 2013
Novice
VBA code to mimic F4 (Repeat) command?
 
Join Date: Feb 2017
Posts: 5
AXbean is on a distinguished road
Default VBA code to mimic F4 (Repeat) command?


Hi all. I'm looking to create a macro that will act like the F4 (Repeat) command, but will replay the last run macro. Is this possible? I have searched this forum and others, but no luck. TIA, Robert
Reply With Quote
  #2  
Old 02-11-2017, 10:25 PM
gmayor's Avatar
gmayor gmayor is offline VBA code to mimic F4 (Repeat) command? Windows 10 VBA code to mimic F4 (Repeat) command? Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

F4 repeats the last command, not the last set of commands. Why not simply run the macro again? Assign it to a keyboard shortcut. If you need to run a process more than once use a loop in your code to run it as many times as required.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find Bookmark, move to bookmark, execute code, repeat raymm3852 Word VBA 10 04-15-2016 06:21 PM
How to setup (or mimic): Two colums with only text being input in leftside column humbug123 Word 1 11-04-2014 12:15 PM
VBA code to mimic F4 (Repeat) command? Check box and command box code Loki Word VBA 2 08-14-2013 07:11 AM
Repeat formula 5 times and repeat? Jenny345 Excel 4 06-14-2013 04:37 PM
VBA code to mimic F4 (Repeat) command? Make Cells Mimic The Formatting Of One Cell skoz55 Excel 1 11-09-2011 09:00 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:10 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