Hi Pankaj,

I just noticed, that in output "Start" and "End" time seems same.

Regards,
Prabhu.R


Thanks & Regards,
Prabhu R

On 10 February 2016 at 01:26, Prabhu Pinky <prabhupin...@gmail.com> wrote:

> Hi pankaj,
>
> Thanks a ton for the coding...
>
> It's working very fine as I expected.. Thanks again.
>
> Regards,
> Prabhu.R
> On Feb 10, 2016 12:03 AM, "Secret Shot" <secrets...@gmail.com> wrote:
>
>> Hay Prabhu,
>>
>> You can use this code to do your required task. . follow the steps
>>
>> Go to visual basic editor under Developer tab
>> Insert a module
>> and paste below code in that module
>>
>> Sub VLup_Macro()
>>     'To selecct perticuler sheet
>>     Sheets("Schedule Check").Select
>>     'To delete any previous data
>>     Range("P6:AC65000").Select
>>     Selection.ClearContents
>>     'to put formula
>>     Range("P6").Select
>>     ActiveCell.FormulaR1C1 = "=VLOOKUP(RC14&R4C,'Text
>> Roster'!C27:C28,2,0)"
>>     Range("P6").Select
>>     Selection.Copy
>>     Range("P6:AC6").Select
>>     ActiveSheet.Paste
>>     Application.CutCopyMode = False
>>     Selection.Copy
>>     Range("O65000").Select
>>     Selection.End(xlUp).Select
>>     ActiveCell.Offset(0, 1).Select
>>     Range(Selection, Selection.End(xlUp)).Select
>>     ActiveSheet.Paste
>>     Application.CutCopyMode = False
>>     'for paste special (If you dont want to paste special then delete the
>> code below)
>>     Selection.Copy
>>     Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
>> SkipBlanks _
>>         :=False, Transpose:=False
>>     Application.CutCopyMode = False
>>     Selection.End(xlUp).Select
>>     Range("O4").Select
>> End Sub
>>
>> Also attaching Excel for your reference.
>>
>> Regards
>> Pankaj k Pandey
>>
>>
>> On Tue, Feb 9, 2016 at 11:28 PM, Prabhu Pinky <prabhupin...@gmail.com>
>> wrote:
>>
>>> Hi Experts,
>>>
>>> I have attached one file, kindly help me with macro code for vlookup.
>>>
>>> > There is two tabs in the file.
>>> > In second tab (sheet name : Schedule Check) i did put the vlookup
>>> formula manually for your reference.
>>> > I have shaded the range where the formula needs to be applied.
>>> > That row range is Dynamic, will be increase or decrease according to
>>> the data updated in Column N & Column O
>>> > But Column range will not increase, only till Column AC the formula
>>> needs to be applied.
>>>
>>>
>>> Thanks & Regards,
>>> Prabhu R
>>>
>>> --
>>> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be?
>>> It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
>>> https://www.facebook.com/discussexcel
>>>
>>> FORUM RULES
>>>
>>> 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) Jobs posting is not allowed.
>>> 6) Sharing copyrighted material and their links is not allowed.
>>>
>>> NOTE : Don't ever post confidential data in a workbook. Forum owners and
>>> members are not responsible for any loss.
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "MS EXCEL AND VBA MACROS" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to excel-macros+unsubscr...@googlegroups.com.
>>> To post to this group, send email to excel-macros@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/excel-macros.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Pankaj Pandey
>> Bhopal
>>
>> --
>> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
>> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
>> https://www.facebook.com/discussexcel
>>
>> FORUM RULES
>>
>> 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) Jobs posting is not allowed.
>> 6) Sharing copyrighted material and their links is not allowed.
>>
>> NOTE : Don't ever post confidential data in a workbook. Forum owners and
>> members are not responsible for any loss.
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "MS EXCEL AND VBA MACROS" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to excel-macros+unsubscr...@googlegroups.com.
>> To post to this group, send email to excel-macros@googlegroups.com.
>> Visit this group at https://groups.google.com/group/excel-macros.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

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) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to