LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
hnyb1
 
Posts: n/a
Default Find and Update Macro

I have several macros written to update information in a spreadsheet based on
an entry into a input box. I need to change these macros to instead look at
a column of numbers in another file and find each number in my spreadsheet
and update. The following is an example of one of the macros:

Dim equipNum As String
Do
equipNum = InputBox("Scan in the Equipment Number. Type Done to Exit")

Cells.Find(What:=equipNum, After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
ActiveCell.Offset(0, 3).Select
ActiveCell.FormulaR1C1 = "Y"

Loop Until equipNum = "Done"
Range("A1").Select

I am using Excel 2003 and only have a moderate grasp on macros. Any help
would be greatly appreciated!

Thanks,
Holly
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Range Mess Karen Charts and Charting in Excel 18 January 14th 06 02:34 PM
Unable to Record Macro murray Excel Discussion (Misc queries) 1 September 12th 05 10:22 PM
can't update links...can't find links GJR3599 Excel Discussion (Misc queries) 1 April 4th 05 04:56 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
refresh pivot tables through a macro dolph Excel Worksheet Functions 1 January 12th 05 03:16 AM


All times are GMT +1. The time now is 03:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"