Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > VBA / Office Integration > Excel > goto a particular cell (excel macro)


Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2003, 11:13 PM
vbamol vbamol is offline
Newcomer
 
Join Date: Sep 2003
Location: Mumbai, India
Posts: 19
Default goto a particular cell (excel macro)


Hi,
I am working on an excel macro.
Is there a method whereby I can take the control to a particular cell in the current active sheet.
e.g if the control ( cursor) is in say cell C 10. when the user runs the macro the control (cursor) should go in cell S 22.
How can I do that.
amol
Reply With Quote
  #2  
Old 10-29-2003, 11:19 PM
masim masim is offline
Newcomer
 
Join Date: Jun 2003
Posts: 11
Default

Use Range("S22").select at the start of your macro.

Regards
Asim
Reply With Quote
  #3  
Old 10-29-2003, 11:22 PM
vbamol vbamol is offline
Newcomer
 
Join Date: Sep 2003
Location: Mumbai, India
Posts: 19
Default

Hi Asim,
The method you suggested worked fine.
Thanks a million.
amol
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel macro and formula replacement Pathis Excel 1 10-09-2003 11:57 AM
Openning Excel and Running Macro from Word - Macro WW_Indy Word, PowerPoint, Outlook, and Other Office Products 0 06-22-2003 05:09 AM
Repeating List remmarg Interface and Graphics 2 10-30-2002 05:57 PM
Hex to ASCII PrOpHeT General 24 10-25-2002 02:27 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->