Dget Formula in VBA Mode

pete393

New Member
Joined
Jan 23, 2005
Messages
21
Hello imTrying to use the dget formula in a vba sub

my data base contains the folowing exemple

name type discription
28 days horror $#%#@

this is what i have so far but it dont work

sub get movie
name = inputbox ("enter movie name")
sheet("movielist").activate
moviedata = application.worsheetfonction. _
dget(movielist,petelist!b3,name)
msgbox moviedata
end sub

been trying to figure it out for a will now :oops: if you can help it would be very apreciated.. :biggrin:
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
How does it not work?

Is it causing errors or not returning the expected result?
 
Upvote 0
Its giving me an Error
runtime eror 424
i have tried all kind of format with the formula cant get to work at all the best ive ever got was msgbox that said FALS
 
Upvote 0
Originaly i has using the vlookup formula that works but i dont like it it was not giving me all the info i whanted.
i want to be able to ask it to show me with a msgbox any info in my data base
 
Upvote 0
this formula is working but i would like to do somme thing like this but with a difrent anwser from a the colom B in my list.

Name = InputBox("enter movie name")
' exit if cancel
If Name = "" Then Exit Sub
Sheets("list").Activate
moviedata = Application.WorksheetFunction. _
VLookup(Name, Range("movielist"), 2, False)
msg = " YES ### HAS " & vbCrLf
msg = msg & Name & vbCrLf
MsgBox msg & " IN HIS LIST"
 
Upvote 0
Hello Every Body could any one pleae help
im not sure if im typing the formula right or what im doing rong i know the dget formula by heart i use it all the time but for somme reason i cant use it in VBA.

cant any one help
:... :oops:
:cry: :cry: :cry:

[/b]
 
Upvote 0

Forum statistics

Threads
1,214,392
Messages
6,119,257
Members
448,880
Latest member
aveternik

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top