Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / September 2006

Tip: Looking for answers? Try searching our database.

find

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
J Bates - 13 Sep 2006 13:41 GMT
How can I setup a macro or use a function to find a column who's first cell
is called "Addresses" then move the whole column to sheet 2.
Is it possible?
Puzzled
Bernie Deitrick - 13 Sep 2006 14:25 GMT
J,

If there is only one cell with the word "Addresses" in it:

Sub MoveAddresses()
Cells.Find("Addresses").EntireColumn.Cut Worksheets("Sheet 2").Range("IV1").End(xlToLeft)(1,2)
End Sub

This will put the column into the column with the first free cell in row 1 of Sheet 2.

HTH,
Bernie
MS Excel MVP

> How can I setup a macro or use a function to find a column who's first cell is called "Addresses"
> then move the whole column to sheet 2.
> Is it possible?
> Puzzled
J Bates - 14 Sep 2006 10:29 GMT
Thanks folks it works a treat.
Don Guillett - 13 Sep 2006 14:38 GMT
Look in the vba help index for FIND

Sub findandcopycol()
Set mc = Rows(1).find("Addresses")
If Not mc Is Nothing Then Columns(mc.Column) _
.Copy Sheets("sheet4").Columns(1)
End Sub
Signature

Don Guillett
SalesAid Software
dguillett1@austin.rr.com

> How can I setup a macro or use a function to find a column who's first
> cell is called "Addresses" then move the whole column to sheet 2.
> Is it possible?
> Puzzled
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.