How to use a drop down list to search with VBA and Excel. Check out my online courses www.easyexcelanswers.com/courses.html
All my courses include online support and a user manual
Let me teach you the VBA that I have learn in my five years of consulting
Let’s take the frustration out of user forms
Become an Affiliate and earn 25% on Course Sales
For more help visit my website www.easyexcelanswers.com or email me at easyexcelanswers@gmail.com.
Contact me regarding customizing this template for your needs.
Click for online Excel Consulting
I am able to provide online help on your computer at a reasonable rate.
I use a Blue condenser Microphone to record my videos, here is the link
Check out Crowdcast for creating your webinars
If you need to buy Office 2019 follow
I use Tube Buddy to help promote my videos
Check them out
Follow me on Facebook
TWEET THIS VIDEO
Follow me on twitter
easyexcelanswers
IG @barbhendersonconsulting
You can help and generate a translation to you own language
*this description may contain affiliate links. When you click them, I may receive a small commission at no extra cost to you. I only recommend products and services that I’ve used or have experience with.
code
Sub copydata()
Dim myyear As Long
Dim sdate As Date
Dim frng As Range
Dim myMonthName As String
Dim c, r As Long
Dim monthh As Integer
c = 2
r = 5
myMonthName = Sheet2.Range(“A4”).Value
myyear = Sheet2.Range(“B4”).Value
monthh = Month(DateValue(“1 ” & myMonthName))
sdate = monthh & “/” & 1 & “/” & myyear
Sheet1.Activate
Set frng = Range(Cells(r, 2), Cells(r, 94)).Find(sdate)
If frng Is Nothing Then
MsgBox “Date not found”
Else
frng.Select
Range(ActiveCell.offset(0, 0), ActiveCell.offset(20, 30)).Copy
Sheet2.Activate
Sheet2.Cells(9, 3).PasteSpecial xlPasteAll
GoTo ende
End If
ende:
Application.CutCopyMode = False
Sheet2.Activate
End Sub
Watch more new videos about Excel Office | Synthesized by Mindovermetal English