View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Jacob Skaria Jacob Skaria is offline
external usenet poster
 
Posts: 8,520
Default How to pick a specific cell within a macro .... ??

Check out whether this will help...

Dim rngTemp As Range
Set rngTemp = Range(Split(ActiveSheet.UsedRange.Address, ":")(0))
MsgBox rngTemp.Address

--
Jacob


"Edi" wrote:

I receive spreadsheets with data from a number of different sources, in
different formats, but with essentially the same type of information. I need
to name about 5 ranges for my macro, but each range begins in a different
cell reference i.e. one range from one source may start at A4, whereas the
other source may have the same data beginning at B2.

I would like to tell my analysis spreadsheet which specific cell to start in
to name the data range.

Is there anyway of doing this?

What would be ideal would be some little message saying "Select the cell
containing the first row of DATE data", and then being able to click in the
first DATE cell, but I'm not sure that this is possible!!

I hope you can understand what I'm after, but if not, let me know and I'll
try to clarify it!

Thanking you in advance!