Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-05-2022, 06:29 AM
macropod's Avatar
macropod macropod is offline Copy Specific Text String To Clipboard At End Of Macro Windows 10 Copy Specific Text String To Clipboard At End Of Macro Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
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


What's with all the Selecting and ScrollRow? For example, all of:
Code:
Sheets("Data Today").Select
Range("B37:F64").Select
Selection.Copy
can be reduced to:
Code:
Sheets("Data Today").Range("B37:F64").Copy
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 10-05-2022, 07:47 AM
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
Default

You're right I could definitely shorten it down this is just a macro from a previous employee so I haven't really messed with it. Still does not solve the copying of text string "Test Slide Distribution" to the clipboard at the end however.
Reply With Quote
Reply

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 12:22 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