Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-13-2012, 03:09 AM
macropod's Avatar
macropod macropod is offline A macro that can insert FILENAME, sendkeys CTRL ALT T, paste clipboard, and nextline Windows 7 64bit A macro that can insert FILENAME, sendkeys CTRL ALT T, paste clipboard, and nextline Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

Hi kyjac85,

Try the following macro:
Code:
Sub InsertData()
Application.ScreenUpdating = False
SendKeys "^%T"
With Selection
  .Text = Split(Split(ActiveDocument.Name, ".")(0), "_")(0)
  .Collapse wdCollapseEnd
  .Paste
End With
Application.ScreenUpdating = True
End Sub
I don't know anything about transcription foot pedals, so I can't help you on that front.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
A macro that can insert FILENAME, sendkeys CTRL ALT T, paste clipboard, and nextline paste and insert, not replace userman Excel 4 06-06-2012 05:15 AM
Problem with the sendkeys in Win7 vidyapakki Excel Programming 1 05-07-2012 11:10 PM
A macro that can insert FILENAME, sendkeys CTRL ALT T, paste clipboard, and nextline Insert/Paste Picture into Protected Worksheet udea Excel 1 02-06-2012 07:43 PM
A macro that can insert FILENAME, sendkeys CTRL ALT T, paste clipboard, and nextline How to insert current date into default filename ? czomberzdaniela Word 1 12-27-2011 07:18 PM
Macro for automatically adding filename without .doc RPM7 Word VBA 0 04-29-2010 01:43 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:51 AM.


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