I think MACRO IS NOT ENABLED. When you open file, Security warning show
under Ribbon. Click options ==> Select Enable this content ==> Press ok.

Try now...

On Wed, May 9, 2012 at 11:57 AM, Smitha S R <sperdwo...@gmail.com> wrote:

> Hi,
>
> Below mentioned code is not working. Even if I select Opening Stock,
> Purchase or Issue option qty is same.
>
>
> On Wed, May 9, 2012 at 11:44 AM, Maries <talk2mar...@gmail.com> wrote:
>
>> Hi,
>>
>> Try below codes,
>>
>> Private Sub Worksheet_Change(ByVal Target As Range)
>> If Target.Cells.Count > 1 Or Target.Column <> 2 Then Exit Sub
>> If Target.Value = "Opening Stock" Then
>> Target.Offset(0, 3) = "=VLOOKUP(RC[-1],'Closing St n Utlzn-Apr
>> 2012'!R2C1:R65C3,3,FALSE)"
>> Else
>> Target.Offset(0, 3) = ""
>> End If
>> End Sub
>>
>> Regards,
>>
>> MARIES.
>>
>> On Tue, May 8, 2012 at 10:40 PM, Smitha S R <sperdwo...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> PFA the statement with the formula as mentioned in the below mail.
>>>
>>> But if the particulars is selected Purchase /Issue other than Opening
>>> Stock , the qty is not changing.
>>>
>>> Please help.
>>>
>>>
>>> On Wed, May 9, 2012 at 10:53 AM, Maries <talk2mar...@gmail.com> wrote:
>>>
>>>> HI,
>>>>
>>>> Try Vlookup for bring closing datas...
>>>>
>>>> =VLOOKUP(D2,'Closing St n Utlzn-Apr 2012'!$A$2:$C$65,3,FALSE)
>>>>
>>>> Regards,
>>>>
>>>>  MARIES.
>>>>
>>>>
>>>> On Tue, May 8, 2012 at 9:31 PM, Smitha S R <sperdwo...@gmail.com>wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> PFA the attachment.
>>>>>
>>>>> Office stock consumption statement is attached where I need the help
>>>>> on solving the explained below:
>>>>>
>>>>> ..
>>>>> I need the closing stock of the relevant items from the other work
>>>>> sheet 'closing st n Utlzn-Apr 2012' in the column 'Qty' of the work sheet
>>>>> 'May 2012'  if the particulars is selected as Opening stock in the same
>>>>> work sheet and  if its selected as Purchase or issue, I have to manually
>>>>> enter the quantity
>>>>>
>>>>> --
>>>>> Please help at the earliest.
>>>>>
>>>>> Thanks& Regards
>>>>> Smitha
>>>>>
>>>>> --
>>>>> FORUM RULES (986+ members already BANNED for violation)
>>>>>
>>>>> 1) Use concise, accurate thread titles. Poor thread titles, like
>>>>> Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need
>>>>> Advice will not get quick attention or may not be answered.
>>>>>
>>>>> 2) Don't post a question in the thread of another member.
>>>>>
>>>>> 3) Don't post questions regarding breaking or bypassing any security
>>>>> measure.
>>>>>
>>>>> 4) Acknowledge the responses you receive, good or bad.
>>>>>
>>>>> 5) Cross-promotion of, or links to, forums competitive to this forum
>>>>> in signatures are prohibited.
>>>>>
>>>>> NOTE : Don't ever post personal or confidential data in a workbook.
>>>>> Forum owners and members are not responsible for any loss.
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------------------------------
>>>>> To post to this group, send email to excel-macros@googlegroups.com
>>>>>
>>>>
>>>>  --
>>>> FORUM RULES (986+ members already BANNED for violation)
>>>>
>>>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>>>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>>>> will not get quick attention or may not be answered.
>>>>
>>>> 2) Don't post a question in the thread of another member.
>>>>
>>>> 3) Don't post questions regarding breaking or bypassing any security
>>>> measure.
>>>>
>>>> 4) Acknowledge the responses you receive, good or bad.
>>>>
>>>> 5) Cross-promotion of, or links to, forums competitive to this forum in
>>>> signatures are prohibited.
>>>>
>>>> NOTE : Don't ever post personal or confidential data in a workbook.
>>>> Forum owners and members are not responsible for any loss.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------------------------------
>>>> To post to this group, send email to excel-macros@googlegroups.com
>>>>
>>>
>>>  --
>>> FORUM RULES (986+ members already BANNED for violation)
>>>
>>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>>> will not get quick attention or may not be answered.
>>>
>>> 2) Don't post a question in the thread of another member.
>>>
>>> 3) Don't post questions regarding breaking or bypassing any security
>>> measure.
>>>
>>> 4) Acknowledge the responses you receive, good or bad.
>>>
>>> 5) Cross-promotion of, or links to, forums competitive to this forum in
>>> signatures are prohibited.
>>>
>>> NOTE : Don't ever post personal or confidential data in a workbook.
>>> Forum owners and members are not responsible for any loss.
>>>
>>>
>>> ------------------------------------------------------------------------------------------------------
>>> To post to this group, send email to excel-macros@googlegroups.com
>>>
>>
>>  --
>> FORUM RULES (986+ members already BANNED for violation)
>>
>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>> will not get quick attention or may not be answered.
>>
>> 2) Don't post a question in the thread of another member.
>>
>> 3) Don't post questions regarding breaking or bypassing any security
>> measure.
>>
>> 4) Acknowledge the responses you receive, good or bad.
>>
>> 5) Cross-promotion of, or links to, forums competitive to this forum in
>> signatures are prohibited.
>>
>> NOTE : Don't ever post personal or confidential data in a workbook. Forum
>> owners and members are not responsible for any loss.
>>
>>
>> ------------------------------------------------------------------------------------------------------
>> To post to this group, send email to excel-macros@googlegroups.com
>>
>
>  --
> FORUM RULES (986+ members already BANNED for violation)
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
>
> 2) Don't post a question in the thread of another member.
>
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
>
> 4) Acknowledge the responses you receive, good or bad.
>
> 5) Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
>
> NOTE : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
>
>
> ------------------------------------------------------------------------------------------------------
> To post to this group, send email to excel-macros@googlegroups.com
>

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to