*@ Krishna, Sir I'm waiting for your reply..... :)*
*
*
On Thu, Sep 27, 2012 at 2:38 AM, Indrajit $nai <talk2indra...@gmail.com>wrote:

*@ Krishna, Sir I'm waiting for your reply..... :)*
>
>


> On Tue, Sep 25, 2012 at 11:16 PM, Indrajit $nai 
> <talk2indra...@gmail.com>wrote:
>
>> *@ Krishna, thanks for the reply, It working now, but some issue;*
>> *
>> *
>> *1. Through this Master file I'm able to create the slave files, but
>> it's not opening, showing an error "invalid format".*
>> *2. If the file is created before, then the data is saving in those
>> slave files, which is ok.*
>> *3. In the Master file "Batch Assign to" and "Batch Status" is not
>> updating after assigning any Batch to the slave file.*
>> *
>> *
>> *You have done a lot for me; please do a little more; then this will be
>> a perfect tool to work with.*
>> *
>> *
>> *Thanks & Regards*
>> *Indrajit*
>> *
>> *
>> *
>> *
>> On Tue, Sep 25, 2012 at 10:35 PM, Krishna Kumar <krishnak...@gmail.com>wrote:
>>
>>> Remove any missing libraries via Tool > References in the VBE window.
>>>
>>> Also keep red lines in single line rather than multiple lines
>>>
>>> Kris
>>>
>>>
>>> On Tue, Sep 25, 2012 at 7:12 PM, Indrajit $nai <talk2indra...@gmail.com>
>>> wrote:
>>> > @Krishna, thanks for the solution, but one problem is there, when I'm
>>> using
>>> > the below mention code I'm getting an error.
>>> >
>>> > PFA the error snapshot.
>>> >
>>> > Waiting for your reply.
>>> >
>>> >
>>> > Thanks & Regards,
>>> > Indrajit
>>> >
>>> > Disclaimer:
>>> > This electronic message and any files transmitted with it are
>>> confidential
>>> > and intended solely for the use of the individual or entity to whom
>>> they are
>>> > addressed. If you are not the intended recipient you are hereby
>>> notified
>>> > that any disclosure, copying, distribution or taking any action in
>>> reliance
>>> > on the contents of this information is strictly prohibited and may be
>>> > unlawful.
>>> >
>>> >
>>> >
>>> > On Mon, Sep 24, 2012 at 5:49 PM, Krishna Kumar <krishnak...@gmail.com>
>>> > wrote:
>>> >>
>>> >> Hi
>>> >>
>>> >> Put this code in Userform module.
>>> >>
>>> >> Dim wbkActive As Workbook
>>> >> Private Sub CommandButton1_Click()
>>> >>
>>> >>     Dim FilePath    As String
>>> >>     Dim FileName    As String
>>> >>     Dim wbkOpen     As Workbook
>>> >>     Dim LastRow     As Long
>>> >>
>>> >>     If wbkActive Is Nothing Then Set wbkActive = ThisWorkbook
>>> >>
>>> >>     FilePath = wbkActive.Worksheets(1).[i1]
>>> >>     If Right(FilePath, 1) <> "\" Then FilePath = FilePath & "\"
>>> >>
>>> >>     If Len(Me.TextBox1.Value) Then
>>> >>         If Len(Me.TextBox2.Value) Then
>>> >>             If Len(Me.TextBox3.Value) Then
>>> >>                 FileName = FilePath & Me.TextBox3.Value & ".xlsx"
>>> >>                 If Not FileIsOpen(FileName) Then
>>> >>                     Set wbkOpen = Workbooks.Open(FilePath &
>>> >> Me.TextBox3.Value & ".xlsx")
>>> >>                     With wbkOpen.Worksheets(1)
>>> >>                         LastRow = .Range("b" &
>>> .Rows.Count).End(3).Row + 1
>>> >>                         .Range("a" & LastRow) = LastRow - 3
>>> >>                         .Range("b" & LastRow).Resize(, 3) =
>>> >> Split(Me.TextBox2.Value & "," & Me.TextBox1.Value & "," &
>>> >> Me.TextBox3.Value, ",")
>>> >>                     End With
>>> >>                     wbkOpen.Close 1
>>> >>                     Set wbkOpen = Nothing
>>> >>                     MsgBox "Done", , "ExcelFox.com"
>>> >>                     Unload Me
>>> >>                 Else
>>> >>                     MsgBox "Workbook '" & FileName & "' is already
>>> >> opened." & vbLf & "Close the workbook and try again", vbInformation,
>>> >> "ExcelFox.com"
>>> >>                     Exit Sub
>>> >>                 End If
>>> >>             Else
>>> >>                 MsgBox "Emp ID is missing", vbInformation,
>>> "ExcelFox.com"
>>> >>                 Me.TextBox3.SetFocus
>>> >>             End If
>>> >>         Else
>>> >>             MsgBox "Batch No is missing", vbInformation,
>>> "ExcelFox.com"
>>> >>             Me.TextBox2.SetFocus
>>> >>         End If
>>> >>     Else
>>> >>         MsgBox "Site is missing", vbInformation, "ExcelFox.com"
>>> >>         Me.TextBox1.SetFocus
>>> >>     End If
>>> >> End Sub
>>> >>
>>> >> Private Sub CommandButton2_Click()
>>> >>     Unload Me
>>> >> End Sub
>>> >>
>>> >> Function FileIsOpen(ByVal FileName As String) As Boolean
>>> >>
>>> >>     Dim ff  As Long
>>> >>
>>> >>     On Error GoTo Xit
>>> >>     ff = FreeFile()
>>> >>     Open FileName For Random Access Read Write Lock Read Write As ff
>>> >>     Close ff
>>> >>     FileIsOpen = False
>>> >>     Exit Function
>>> >> Xit:
>>> >>     Close ff
>>> >>     FileIsOpen = True
>>> >> End Function
>>> >>
>>> >>
>>> >> In I1 enter the network path.
>>> >>
>>> >>
>>> >> Kris
>>> >> ExcelFox
>>> >>
>>> >> --
>>> >> Join official facebook page of this forum @
>>> >> https://www.facebook.com/discussexcel
>>> >>
>>> >> FORUM RULES (1120+ 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.
>>> >>
>>> >> 6) Jobs posting is not allowed.
>>> >>
>>> >> 7) Sharing copyrighted ebooks/pirated ebooks/their links is not
>>> allowed.
>>> >>
>>> >> NOTE  : Don't ever post personal or 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 post to this group, send email to excel-macros@googlegroups.com.
>>> >> To unsubscribe from this group, send email to
>>> >> excel-macros+unsubscr...@googlegroups.com.
>>> >>
>>> >>
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > Join official facebook page of this forum @
>>> > https://www.facebook.com/discussexcel
>>> >
>>> > FORUM RULES (1120+ 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.
>>> >
>>> > 6) Jobs posting is not allowed.
>>> >
>>> > 7) Sharing copyrighted ebooks/pirated ebooks/their links is not
>>> allowed.
>>> >
>>> > NOTE : Don't ever post personal or 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 post to this group, send email to excel-macros@googlegroups.com.
>>> > To unsubscribe from this group, send email to
>>> > excel-macros+unsubscr...@googlegroups.com.
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>>
>>> Kris
>>> ExcelFox
>>>
>>> --
>>> Join official facebook page of this forum @
>>> https://www.facebook.com/discussexcel
>>>
>>> FORUM RULES (1120+ 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.
>>>
>>> 6) Jobs posting is not allowed.
>>>
>>> 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
>>>
>>> NOTE  : Don't ever post personal or 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 post to this group, send email to excel-macros@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> excel-macros+unsubscr...@googlegroups.com.
>>>
>>>
>>>
>>
>>
>>
>>
>
>
>
>

-- 
Join official facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES (1120+ 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. 

6) Jobs posting is not allowed.

7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.

NOTE  : Don't ever post personal or 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 post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to 
excel-macros+unsubscr...@googlegroups.com.


Reply via email to