Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Put the address in a String variable and then manipulate that.
Addr = "B9,C9,I9,J9" MsgBox Range(Addr).Address Addr = Left(Addr, InStrRev(Addr, ",") - 1) MsgBox Range(Addr).Address Addr = Left(Addr, InStrRev(Addr, ",") - 1) MsgBox Range(Addr).Address Addr = Left(Addr, InStrRev(Addr, ",") - 1) MsgBox Range(Addr).Address where I have used the MsgBox statements as a stand-in for your processing code. -- Rick (MVP - Excel) "sunilpatel" wrote in message ... How can i achieve the following using code i need the Range 'Fields' to 'shrink' by the first cell being removed after some code is processed i.e Dim Fields As Range Fields = Range("B9,C9,I9,J9") to Fields = Range("C9,I9,J9") to Fields = Range("I9,J9") to Fields= Range("J9") Cheers for all your help so far |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA: Edit Web Query with Range(B24).Value | Excel Programming | |||
Range statemeny query | Excel Programming | |||
Using range names in SQL query | Excel Programming | |||
Used range and SQL query | Excel Programming | |||
Searching a range with MS Query | Excel Worksheet Functions |