Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Go to specific row in Excel
Masih Ostad Novin 
    
2 years ago
Hi. Is it possible that open an Exel file from access and go to a specific row and highlighted?

Best
Masih
Kevin Yip  @Reply  
     
2 years ago
You need to use a technique called automation to have Access control the Excel application via VBA.  Then you can use VBA to select a row in the active Excel worksheet, which is pretty simple to do:

     Worksheet(2).Select
     Worksheet(2).Rows(20).Select

This code takes you to the second worksheet and selects the 20th row (see picture below).

But to use this code you first need to set up automation in Access, which is a big topic that involves a lot more code.  It is covered by Richard in one of his more advanced courses.  Search this site for "automation".
Kevin Yip  @Reply  
     
2 years ago

Masih Ostad Novin OP  @Reply  
    
2 years ago
Is it Developer 39? When I search for automation, it gives me 39.
Kevin Yip  @Reply  
     
2 years ago
I don't have access to Richard's courses, unfortunately, so I can't verify the exact videos you need to see.  The picture below is a sample code to show what automation roughly entails -- you create object variables for various Excel objects: application, workbook, worksheet, range, cell, etc., and then you edit and control the data with VBA in Access, as if the users were manually using Excel themselves, hence the term "automation."
Kevin Yip  @Reply  
     
2 years ago

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 8/17/2026 9:12:51 AM. PLT: 1s