Find a specific text item and manipulate cells surrounding
- From: RichHoughton <RichHoughton@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 5 Aug 2005 03:52:01 -0700
Hello
Sorry for being rubbish but despite other examples i am still struggling. I
have the string "hello" as a column heading in a ***. I wish to create a
macro that, for every time is run, assigns the cell value (eg A3 if "hello"
is in A3) to a variable.
i then have the code;
Range("A3").Select <--- "A3" will become the variable
Selection.EntireColumn.Insert
to insert a new column.
When the macro is re-run, the variable would hold the range "A4" in this
instance, and move the string "hello" into cell A5.
Thank you
.
- Follow-Ups:
- Prev by Date: Re: Macro Help!! 10 mins of your time need PLEASE!
- Next by Date: Re: Macro Help!! 10 mins of your time need PLEASE!
- Previous by thread: Really Easy But having a mental Blank
- Next by thread: RE: Find a specific text item and manipulate cells surrounding
- Index(es):