Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Inefficient VBA Code - Worksheets Property

can't shorten as written. You can use goto and a referenceSub gothere()
Application.Goto reference:=[Sheet15!a2]
End Sub

But, if you want to get info or copy you don't have to select anyway. How
about more info on what you want to do .

--
Don Guillett
SalesAid Software
Granite Shoals, TX

"Aaron" wrote in message
...
Hi,

Is there a way to condense the VBA code listed below into
1 line:
Worksheets("Sheet3").Activate
Range("A3").Activate

What about
Worksheets("Sheet3").Activate
Range("A3").Select

I couldn't get what's listed below to work...
Sheets("Sheet3").Range("A3").Activate
Worksheets("Sheet3").Range("A3").Activate
Sheets("Sheet3").Range("A3").Select
Worksheets("Sheet3").Range("A3").Select

Thanks for any help you may be able to provide!
Aaron



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code for multiple worksheets Paul S Excel Discussion (Misc queries) 1 June 17th 08 12:50 PM
Combine Worksheets - help with Code! CherylH Excel Discussion (Misc queries) 1 September 13th 07 03:45 PM
Windows Visible Property - Code Help Gerry O Excel Discussion (Misc queries) 2 September 6th 07 02:44 AM
deleting selected worksheets using vb code George Excel Discussion (Misc queries) 1 October 31st 06 05:14 PM
VBA Code For OR-Function Using Cell Property kylie Excel Discussion (Misc queries) 1 June 20th 06 02:42 AM


All times are GMT +1. The time now is 03:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"