Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Business Applications
Tag Cloud
access acer asus batch bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard mouse network printer problem ram registry router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
Excel Macro to lookup reference and copy data

Reply  
Thread Tools
RobAndrews's Avatar
Junior Member with 12 posts.
 
Join Date: Nov 2009
Experience: Intermediate
19-Nov-2009, 07:16 AM #1
Excel Macro to lookup reference and copy data
Hi,

I'm looking to set up a macro to do the following:

Open up a workbook called Works Order Register
Find my Works Order on the register by matching the WOnumber (I8) and Contractor name (C1735) from Works Order workbook.
Once found copy various data e.g cell I1735, I1737 etc across to columns D, E etc on the register against the corresponding row found in the previous step.

I've got parts working ok, but not the whole thing together.

Thanks for help.
Rollin_Again's Avatar
Senior Member with 4,273 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
19-Nov-2009, 08:19 AM #2
Can you post a sample workbook so we can see the data layout? If you prefer not to post on the forum I can give you my email address to send to. The coding should be easy.

Regards,
Rollin
RobAndrews's Avatar
Junior Member with 12 posts.
 
Join Date: Nov 2009
Experience: Intermediate
19-Nov-2009, 09:14 AM #3
I can email it to you. Would you like both workbooks involved?
Rollin_Again's Avatar
Senior Member with 4,273 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
19-Nov-2009, 11:59 AM #4
Yes please. Send to Rollin_Again at hotmail dot com

Regards,
Rollin
Rollin_Again's Avatar
Senior Member with 4,273 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
19-Nov-2009, 03:29 PM #5
OK, got your email and have a question. Are the work order number on the Register workbook unique? In other words, can we just perform a search for the work order number by itself or do we need to do a combination search using both the work order number and the contractor name?

Regards,
Rollin
RobAndrews's Avatar
Junior Member with 12 posts.
 
Join Date: Nov 2009
Experience: Intermediate
19-Nov-2009, 04:25 PM #6
The works orders could be duplicated. A failing of the current system is that it raises a different work order number to each contractor, therefore I'm looking to do a register where one works order number can be issued to more than one contractor and thus capturing the whole job.

So in answer to your question, the works order number and contractor combination will be unique, not just the works order number alone.

The stage after the registration of the works order is to add another contractor stage (if applicable) which will then create another line on the register for that contractor.
RobAndrews's Avatar
Junior Member with 12 posts.
 
Join Date: Nov 2009
Experience: Intermediate
26-Nov-2009, 10:17 AM #7
^bump

Back in the office now, anyone able to help on this one please?
slurpee55's Avatar
Computer Specs
Distinguished Member with 7,837 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
26-Nov-2009, 10:43 AM #8
This really sounds like it should be in Access or another database program. Any results you want can be easily exported to Excel, if you prefer.
RobAndrews's Avatar
Junior Member with 12 posts.
 
Join Date: Nov 2009
Experience: Intermediate
26-Nov-2009, 11:07 AM #9
I'm sure you're correct but access isn't widely used by others in my workplace and I've got a number of macros working within this spreadsheet already.

Access is certainly a medium to long term option once I've got this quick fix solution completed.

Thanks though
RobAndrews's Avatar
Junior Member with 12 posts.
 
Join Date: Nov 2009
Experience: Intermediate
26-Nov-2009, 11:10 AM #10
Quote:
Originally Posted by RobAndrews View Post
The works orders could be duplicated. A failing of the current system is that it raises a different work order number to each contractor, therefore I'm looking to do a register where one works order number can be issued to more than one contractor and thus capturing the whole job.

So in answer to your question, the works order number and contractor combination will be unique, not just the works order number alone.

The stage after the registration of the works order is to add another contractor stage (if applicable) which will then create another line on the register for that contractor.
Just to note, actually at this stage the works order isn't duplicated. I can add that into a macro a couple of stages on when it's really necessary.
turbodante's Avatar
Senior Member with 744 posts.
 
Join Date: Dec 2008
Location: GMT UK
26-Nov-2009, 11:27 AM #11
Sounds like you could write the VBA to do a Autofilter on the WONumber (I8) and Contractor name (C1735), then copy and pasting.

Do you want to post a sample of what you have (w/ dummy data) on the forum in case Rollin is not back for a while?
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 02:07 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.