If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > macro to select row

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-18-09, 12:55
cerebum cerebum is offline
Registered User
 
Join Date: Aug 2009
Posts: 1
Smile macro to select row

I have a worksheet that contains vehicle details. Column A contains vehicle serial numbers in ascending order. I want to select the serial number from a list then run a macro which selects the entire row ready for cutting or copying but I have no idea how to do it. Is there a simple way?

Cheers
Reply With Quote
  #2 (permalink)  
Old 08-19-09, 04:13
CasparV CasparV is offline
Registered User
 
Join Date: Jul 2007
Posts: 54
Why use a macro? Why not just use the LOOKUP function? You would have to sort the vehicale data sheet by the serial numbers. Also be careful if any of the serial numbers have leading zeroes as Excel may choose to see some as numbers and then that could mess up the sorting.

HTH
Caspar
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On