Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-04-2022, 02:46 PM
et_33 et_33 is offline Copy Specific Text String To Clipboard At End Of Macro Windows 11 Copy Specific Text String To Clipboard At End Of Macro Office 2021
Novice
Copy Specific Text String To Clipboard At End Of Macro
 
Join Date: Oct 2022
Posts: 4
et_33 is on a distinguished road
Lightbulb Copy Specific Text String To Clipboard At End Of Macro

Hello all,

I need to manually input some data from each day of the year by saving certain excel files all under the name "Test Slide Distribution" and I am tired of typing in the SaveAs window that phrase hundreds of times. Is there a way I can add the specific phrase "Test Slide Distribution" to be copied to the clipboard so I can simply hit control V and paste in the SaveAs window after I run my Macro's needed to get data compiled each day?


This is my current code, and I would like to add the phrase to the clipboard after this final macro:

Sub Get_WTP_Data_Feb22()
'
' Get_WTP_Data_Feb22 Macro
'

'
Sheets("Data Today").Select
Range("B37:F64").Select
Selection.Copy
Sheets("WTP").Select
ActiveWindow.ScrollRow = 6386
ActiveWindow.ScrollRow = 6366
ActiveWindow.ScrollRow = 6315
ActiveWindow.ScrollRow = 6255
ActiveWindow.ScrollRow = 6225
ActiveWindow.ScrollRow = 6174
ActiveWindow.ScrollRow = 6144
ActiveWindow.ScrollRow = 5234
ActiveWindow.ScrollRow = 4931


ActiveWindow.ScrollRow = 4658
ActiveWindow.ScrollRow = 3436
ActiveWindow.ScrollRow = 3062
ActiveWindow.ScrollRow = 2981
ActiveWindow.ScrollRow = 2769
ActiveWindow.ScrollRow = 2557
ActiveWindow.ScrollRow = 2314
ActiveWindow.ScrollRow = 2244
ActiveWindow.ScrollRow = 1193
ActiveWindow.ScrollRow = 1051
ActiveWindow.ScrollRow = 607
ActiveWindow.ScrollRow = 536
ActiveWindow.ScrollRow = 354
ActiveWindow.ScrollRow = 294
ActiveWindow.ScrollRow = 223
ActiveWindow.ScrollRow = 203
ActiveWindow.ScrollRow = 31
ActiveWindow.ScrollRow = 21
ActiveWindow.ScrollRow = 1
Range("A1").Select
Selection.End(xlDown).Offset(1).Select
ActiveCell.PasteSpecial xlPasteValues
End Sub
Reply With Quote
 

Tags
macro, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
WORD MACRO COPY/PAST from clipboard rachidlea Word VBA 0 11-16-2021 09:38 AM
Need to copy specific formated text from Word and paste from clipboard into a console application Userx Word VBA 0 10-09-2020 05:58 AM
Search for specific data in a text string teligence Excel 1 05-20-2017 11:51 AM
Copy Specific Text String To Clipboard At End Of Macro Find & selected paras with highlighted text & copy to clipboard marceepoo Word VBA 1 09-14-2012 08:20 PM
Copy Specific Text String To Clipboard At End Of Macro Mark text in a text box and copy to clipboard (with button) ArthurM PowerPoint 4 02-19-2012 11:33 AM

Other Forums: Access Forums

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