DetroitDavid
Board Regular
- Joined
- Jul 20, 2013
- Messages
- 211
I’d like to select an entire row (or to the limit of a range) as show below in light blue, when a value (which is text) is supplied via an input.
Something like:
GetAgencyNumber = InputBox("Agency Number")
Application.Goto (ActiveWorkbook.Sheets("Header").Range("B1"))
Set cell = Selection.Find(GetAgencyNumber, ActiveCell)
Copy the range A2:M2 ‘’’ (this would change depending on the input value)
Header
<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 83px;"><col style="width: 103px;"><col style="width: 190px;"><col style="width: 68px;"><col style="width: 87px;"><col style="width: 49px;"><col style="width: 85px;"><col style="width: 88px;"><col style="width: 84px;"><col style="width: 137px;"><col style="width: 95px;"><col style="width: 64px;"><col style="width: 64px;"></colgroup><tbody>
[TD="bgcolor: #CACACA, align: center"]1[/TD]
[TD="align: left"]client_number[/TD]
[TD="align: left"]provider-name[/TD]
[TD="align: center"]npi[/TD]
[TD="align: left"]sample-month[/TD]
[TD="align: center"]total patients served[/TD]
[TD="align: center"]number-vendor-submitted[/TD]
[TD="align: center"]TEP[/TD]
[TD="align: center"]number-surveyed[/TD]
[TD="bgcolor: #CACACA, align: center"]2[/TD]
[TD="bgcolor: #99CCFF, align: right"]1[/TD]
[TD="bgcolor: #339966, align: center"]001[/TD]
[TD="bgcolor: #99CCFF"]Client 1[/TD]
[TD="bgcolor: #99CCFF, align: right"]237492[/TD]
[TD="bgcolor: #99CCFF, align: center"]1679515068[/TD]
[TD="bgcolor: #99CCFF, align: left"]4[/TD]
[TD="bgcolor: #99CCFF, align: right"]2013[/TD]
[TD="bgcolor: #99CCFF, align: right"]1[/TD]
[TD="bgcolor: #99CCFF, align: right"]1[/TD]
[TD="bgcolor: #99CCFF, align: center"]8[/TD]
[TD="bgcolor: #99CCFF, align: center"]8[/TD]
[TD="bgcolor: #99CCFF, align: center"]5[/TD]
[TD="bgcolor: #99CCFF, align: center"]4[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
Something like:
GetAgencyNumber = InputBox("Agency Number")
Application.Goto (ActiveWorkbook.Sheets("Header").Range("B1"))
Set cell = Selection.Find(GetAgencyNumber, ActiveCell)
Copy the range A2:M2 ‘’’ (this would change depending on the input value)
Header
* | A | B | C | D | E | F | G | H | I | J | K | L | M |
header-type | provider-id | sample-year | survey-mode | sample-type | |||||||||
<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 83px;"><col style="width: 103px;"><col style="width: 190px;"><col style="width: 68px;"><col style="width: 87px;"><col style="width: 49px;"><col style="width: 85px;"><col style="width: 88px;"><col style="width: 84px;"><col style="width: 137px;"><col style="width: 95px;"><col style="width: 64px;"><col style="width: 64px;"></colgroup><tbody>
[TD="bgcolor: #CACACA, align: center"]1[/TD]
[TD="align: left"]client_number[/TD]
[TD="align: left"]provider-name[/TD]
[TD="align: center"]npi[/TD]
[TD="align: left"]sample-month[/TD]
[TD="align: center"]total patients served[/TD]
[TD="align: center"]number-vendor-submitted[/TD]
[TD="align: center"]TEP[/TD]
[TD="align: center"]number-surveyed[/TD]
[TD="bgcolor: #CACACA, align: center"]2[/TD]
[TD="bgcolor: #99CCFF, align: right"]1[/TD]
[TD="bgcolor: #339966, align: center"]001[/TD]
[TD="bgcolor: #99CCFF"]Client 1[/TD]
[TD="bgcolor: #99CCFF, align: right"]237492[/TD]
[TD="bgcolor: #99CCFF, align: center"]1679515068[/TD]
[TD="bgcolor: #99CCFF, align: left"]4[/TD]
[TD="bgcolor: #99CCFF, align: right"]2013[/TD]
[TD="bgcolor: #99CCFF, align: right"]1[/TD]
[TD="bgcolor: #99CCFF, align: right"]1[/TD]
[TD="bgcolor: #99CCFF, align: center"]8[/TD]
[TD="bgcolor: #99CCFF, align: center"]8[/TD]
[TD="bgcolor: #99CCFF, align: center"]5[/TD]
[TD="bgcolor: #99CCFF, align: center"]4[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
Last edited: