Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50271

[SOLVED] Select A a range within a column Help

$
0
0
For you newbies,

this is is something I struggle with a lot. -And you should look to master.

For the masters,

Help me nab this logic down...

Code:

  l = Range("M" & Rows.Count).End(xlUp).Row
  'The Data in column M will always have data in each row...NO blanks

So based on the lenght of Column M (Which starts on cell M8--Not sure if the above should show as M8:M)

Here is the line giving me trouble


Code:

    Set sht = ThisWorkbook.Worksheets("Sheet1").Range("AC8").End(xlToRight)
I need to select AC8 and down to the length of column M or "l"

Viewing all articles
Browse latest Browse all 50271

Latest Images

Trending Articles



Latest Images