#1   Report Post  
Jeff
 
Posts: n/a
Default Urgent Help VBA

Hello,


I need ASAP to transform this function into a VBA macro to finish an
existing VBA Macro

=INDEX([VBPA.xls]Sheet1!$D$1:$D$50000,
MATCH(1,(INT(D3)=[VBPA.xls]Sheet1!$A$1:$A$50000)*("BP"=[VBPA.xls]Sheet1!$C$1:$C$50000),0))
--
Regards,
Jeff

  #2   Report Post  
Zack Barresse
 
Posts: n/a
Default

Hello,

A function is different than a procedure, they are not the same, and that is
what you asked for. If you want to know how to *use* the function using
VBA, well, why don't you use it just the way it is, using the Evaluate
method?

Evaluate("=INDEX([VBPA.xls]Sheet1!$D$1:$D$50000,MATCH(1,(INT(D3)=[VBPA.xls]Sheet1!$A$1:$A$50000)*(""BP""=[VBPA.xls]Sheet1!$C$1:$C$50000),0))")

(did not test your formula) Just be sure and use double quotes around your
text in the formula, single quotes will skew it in VBA.

--
Regards,
Zack Barresse, aka firefytr, (GT = TFS FF Zack)


"Jeff" wrote in message
...
Hello,


I need ASAP to transform this function into a VBA macro to finish an
existing VBA Macro

=INDEX([VBPA.xls]Sheet1!$D$1:$D$50000,
MATCH(1,(INT(D3)=[VBPA.xls]Sheet1!$A$1:$A$50000)*("BP"=[VBPA.xls]Sheet1!$C$1:$C$50000),0))
--
Regards,
Jeff



  #3   Report Post  
Jeff
 
Posts: n/a
Default

Thank you.
So, can anyone please help me with a VBA procedure that would run this
function from row F3 to the next empty row in column "C"

=INDEX([VBPA.xls]Sheet1!$D$1:$D$50000,
MATCH(1,(INT(D3)=[VBPA.xls]Sheet1!$A$1:$A$50000)*("BP"=[VBPA.xls]Sheet1!$C$1:$C$50000),0))

--
Regards,
Jeff



"Zack Barresse" wrote:

Hello,

A function is different than a procedure, they are not the same, and that is
what you asked for. If you want to know how to *use* the function using
VBA, well, why don't you use it just the way it is, using the Evaluate
method?

Evaluate("=INDEX([VBPA.xls]Sheet1!$D$1:$D$50000,MATCH(1,(INT(D3)=[VBPA.xls]Sheet1!$A$1:$A$50000)*(""BP""=[VBPA.xls]Sheet1!$C$1:$C$50000),0))")

(did not test your formula) Just be sure and use double quotes around your
text in the formula, single quotes will skew it in VBA.

--
Regards,
Zack Barresse, aka firefytr, (GT = TFS FF Zack)


"Jeff" wrote in message
...
Hello,


I need ASAP to transform this function into a VBA macro to finish an
existing VBA Macro

=INDEX([VBPA.xls]Sheet1!$D$1:$D$50000,
MATCH(1,(INT(D3)=[VBPA.xls]Sheet1!$A$1:$A$50000)*("BP"=[VBPA.xls]Sheet1!$C$1:$C$50000),0))
--
Regards,
Jeff




  #4   Report Post  
Zack Barresse
 
Posts: n/a
Default

Okay, I'm confused. Can't you do this by hand? I think it should only take
about 10 seconds or so.. :-?

Goto C3, press Ctrl + Down
Press Down arrow one more time
Press Right arrow 3 times.
Hold Shift, click F3
Press Enter once
Enter formula
Confirm with Ctrl + Enter

Am I missing something here... ??

--
Regards,
Zack Barresse, aka firefytr, (GT = TFS FF Zack)



"Jeff" wrote in message
...
Thank you.
So, can anyone please help me with a VBA procedure that would run this
function from row F3 to the next empty row in column "C"

=INDEX([VBPA.xls]Sheet1!$D$1:$D$50000,
MATCH(1,(INT(D3)=[VBPA.xls]Sheet1!$A$1:$A$50000)*("BP"=[VBPA.xls]Sheet1!$C$1:$C$50000),0))

--
Regards,
Jeff



"Zack Barresse" wrote:

Hello,

A function is different than a procedure, they are not the same, and that
is
what you asked for. If you want to know how to *use* the function using
VBA, well, why don't you use it just the way it is, using the Evaluate
method?

Evaluate("=INDEX([VBPA.xls]Sheet1!$D$1:$D$50000,MATCH(1,(INT(D3)=[VBPA.xls]Sheet1!$A$1:$A$50000)*(""BP""=[VBPA.xls]Sheet1!$C$1:$C$50000),0))")

(did not test your formula) Just be sure and use double quotes around
your
text in the formula, single quotes will skew it in VBA.

--
Regards,
Zack Barresse, aka firefytr, (GT = TFS FF Zack)


"Jeff" wrote in message
...
Hello,


I need ASAP to transform this function into a VBA macro to finish an
existing VBA Macro

=INDEX([VBPA.xls]Sheet1!$D$1:$D$50000,
MATCH(1,(INT(D3)=[VBPA.xls]Sheet1!$A$1:$A$50000)*("BP"=[VBPA.xls]Sheet1!$C$1:$C$50000),0))
--
Regards,
Jeff






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Urgent" use script to share the workbook man Excel Discussion (Misc queries) 1 August 17th 05 02:09 PM
Shared Workbook Problem, Urgent calimari Excel Discussion (Misc queries) 2 July 8th 05 07:48 PM
A Sorted Affair - not urgent Gary's Student Excel Discussion (Misc queries) 0 June 6th 05 09:49 PM
Urgent Urgent Urgent!!! Ruslan Excel Discussion (Misc queries) 6 March 30th 05 02:59 PM
Urgent - How to fix grayed out option under Tools|Options|Chart? saturnin02 Excel Discussion (Misc queries) 1 January 28th 05 04:16 PM


All times are GMT +1. The time now is 11:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"