Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-01-2024, 09:58 PM
soroush.kalantari soroush.kalantari is offline Problem with sendkey method Windows 10 Problem with sendkey method Office 2021
Competent Performer
Problem with sendkey method
 
Join Date: Jun 2021
Posts: 124
soroush.kalantari is on a distinguished road
Default Problem with sendkey method


I am trying to perform control+”[“ (shortcut for going to immediate precedent) by “SendKeys "^[", True”. But this line of code do nothing after running. (no run time error). Can you guide me on this issue?
Reply With Quote
  #2  
Old 06-03-2024, 06:45 PM
Guessed's Avatar
Guessed Guessed is offline Problem with sendkey method Windows 10 Problem with sendkey method Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

You shouldn't need SendKeys. Do either of these lines do what you wanted?
Code:
Selection.ShowPrecedents
'or
Selection.DirectPrecedents
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Tags
sendkeys

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Method A or Method B gmaxey Word VBA 4 03-31-2024 01:50 PM
Problem with sendkey method Changing Recorded Macro Selection/Clipboard Method to Range/FormattedText Method zanodor Word VBA 5 07-15-2022 01:25 AM
VBA Excel method Not working grandneos Excel 2 01-07-2022 11:19 AM
Problem with sendkey method Sorting method Steve Bartko Excel 6 10-26-2016 11:38 AM
Problem with sendkey method Why no 'SaveCopyAs' method? Cosmo Word VBA 4 10-18-2013 05:57 AM

Other Forums: Access Forums

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