LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default OMG! This seems to easy I can't get it

You could try
Sub ColSelect
Dim Col1St As String
Dim Col1Fin As String
Dim Col2St As String
Dim Col2Fin As String
Col1St = "H"
Col1Fin = "H"
Col2St = "A"
Col2Fin = "F"
Range(Col1St & ":" & Col1Fin & "," & Col2St & ":" & Col2Fin).Select
End Sub

Or are you trying to record what someone selects?

"Cesar Zapata" wrote in message
...
Hi,

this looks easey but is 3:45 PM and I dont think to well after 3:00 pM :)

what I'm trying to is to select columns.

Range("H:H,A:F").Select this is what the macro recorded does but the

HH
can change anytime so I'm trying to it with VBA like this:

col = ActiveCell.EntireColumn.Address

Range("ActiveCell.EntireColumn.Address,A:F").Selec t

or

range(activecell.column,"A:F").select this selects all the columsn from
A,F to whater the acticell is but it does not jump.

for example if I just want to select A:F and AZ it does not work.


can you please help?


Thanks


cesar


'





 
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
This has to be easy. PK Charts and Charting in Excel 2 September 17th 08 12:56 PM
pls help, is there an easy way to [email protected] Excel Worksheet Functions 12 May 3rd 07 07:04 PM
Should be easy, but... mr tom Excel Worksheet Functions 7 March 6th 07 06:26 PM
Very easy I'm sure themax16 Excel Discussion (Misc queries) 2 October 21st 05 04:02 PM
new user with easy question? not easy for me speakeztruth New Users to Excel 5 June 3rd 05 09:40 PM


All times are GMT +1. The time now is 12:14 PM.

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

About Us

"It's about Microsoft Excel"