Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,564
- Office Version
- 365
- 2016
- Platform
- Windows
I have two worksheets. The first worksheet (ws_cd) has columns of data that need to be populated from data in the second worksheet (ws_pebf1). To do this, my application must first determine which row in the second worksheet to extract the data from if it exists. This row will be based on matched data ...
ws_cd date (bdate) = ws_pebf1 date (pdate)
AND
ws_cd permit number (bpnum) = ws_pebf1 permit number (ppnum)
AND
ws_cd resource (bres) = ws_pebf1 resource (pres)
AND
ws_cd start time (bstart) = ws_pebf1 start time (pstart)
AND
ws_cd end time (bend) = ws_pebf1 end time (pend)
I am looking at the best VBA approach to isolating the row from the data in ws_pebf and transferring data from that row to it's corresponding row in ws_cd. I'm not sure if filtering is the way (and if so how), or creating strings in each workbook and matching them. There will only ever be one matching row (if any at all).
Thoughts?
ws_cd date (bdate) = ws_pebf1 date (pdate)
AND
ws_cd permit number (bpnum) = ws_pebf1 permit number (ppnum)
AND
ws_cd resource (bres) = ws_pebf1 resource (pres)
AND
ws_cd start time (bstart) = ws_pebf1 start time (pstart)
AND
ws_cd end time (bend) = ws_pebf1 end time (pend)
I am looking at the best VBA approach to isolating the row from the data in ws_pebf and transferring data from that row to it's corresponding row in ws_cd. I'm not sure if filtering is the way (and if so how), or creating strings in each workbook and matching them. There will only ever be one matching row (if any at all).
Thoughts?