pl tell how to exit out of this group?

On Fri, Jul 5, 2013 at 10:28 AM, sandeep shivpujan singh <
mandy07s...@gmail.com> wrote:

> Hi,
>
> You can use below code also. I think you want to save a blank sheet with
> the  required name.
>
> 1. Code to save one sheet with the data given in cells 2.
>
> Dim strPath As String
> strPath = ActiveWorkbook.Path & "\"
> ActiveSheet.Copy
> ActiveWorkbook.SaveAs Filename:=strPath & Cells(2, 1) & "-" & Cells(2, 2)
> & "-" & Cells(2, 4) & ".xls"
> ActiveWorkbook.Close
> MsgBox "done"
>
>
> 2. based on number of rows you have.. each row data can be used and saved
> as a new sheet.
>
> 'for saving each row value as new xls you can try this.
>
> Dim i, j As Integer
> i = 4 ' i can be any number of row you want.
>
> For j = 2 To i 'two is for starting from 2nd row as 1st row is heading.
> ActiveSheet.Copy
> ActiveWorkbook.SaveAs Filename:=strPath & Cells(j, 1) & "-" & Cells(j, 2)
> & "-" & Cells(j, 4) & ".xls"
> ActiveWorkbook.Close
> Next j
>
>
> Thanks,
> Sandeep
>
>
> On Friday, 5 July 2013 09:41:01 UTC+5:30, Pankaj wrote:
>>
>> Dear All,
>>
>> Please help to SAVE As file name as per record entered.
>>
>>
>> [image: Inline image 1]
>>
>> --
>>
>> Thanks
>> Pankaj Kumar
>> 9910075248
>>
>  --
> 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 http://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Regards
Ram
Chartered Accountant
9990484446

-- 
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 http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to