View Single Post
 
Old 01-13-2017, 08:47 AM
NoSparks NoSparks is offline Windows 7 64bit Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

An easier way....
remove the ":" and first character from the address string then split it into its parts.
This will show in the Immediate Window what you're dealing with.
Code:
Sub Parts_of_Address()
  AddressStr = ActiveCell.CurrentRegion.Address
  Debug.Print Mid(AddressStr, 2)
  parts = Split(Mid(Replace(AddressStr, ":", ""), 2), "$")
  For i = LBound(parts) To UBound(parts)
    Debug.Print i, parts(i)
  Next i
End Sub
Reply With Quote