You need to send ME a FILE showing EXACTLY what you want....

Don Guillett
Microsoft Excel Developer
SalesAid Software
[email protected]

From: amar takale 
Sent: Thursday, July 19, 2012 11:58 PM
To: [email protected] 
Subject: Re: $$Excel-Macros$$ Company Name in front of Show its sector

I used this code But not work. Which I send second file sample 1 Use it & put 
code.
If I put code & run code not work. Y also try.My answer in sheet like

      H D F C Bank Ltd. Bank
     
      State Bank Of India Bank
     

      Tata Steel Ltd. Metals & Minerals
     
      Sterlite Industries (India) Ltd. Metals & Minerals
     

      Mahindra & Mahindra Ltd. Auto
     
      Maruti Suzuki India Ltd.Auto 


On Thu, Jul 19, 2012 at 6:39 PM, dguillett1 <[email protected]> wrote:

  You asked for a macro and I provided one that did work with your example. 
Please fully explain.

  Don Guillett
  Microsoft Excel Developer
  SalesAid Software
  [email protected]

  From: amar takale 
  Sent: Thursday, July 19, 2012 7:59 AM
  To: [email protected] 
  Subject: Re: $$Excel-Macros$$ Company Name in front of Show its sector

  Code is not work.I will Sent file You will work with below code.I use but not 
work.There are any formula?


  On Thu, Jul 19, 2012 at 6:09 PM, dguillett1 <[email protected]> wrote:

    Should work

    Option Explicit
    Sub groupsSAS()
    Dim mr As Range
    Dim b As Range
    Dim sr As Long
    Rows(2).Insert
    Set mr = Cells(2, "b") _
    .Resize(Cells(Rows.Count, "b").End(xlUp).Row)
    For Each b In mr.SpecialCells(xlBlanks)
    sr = b.Offset(-1).End(xlUp).Row
    Cells(sr, "c") _
    .Resize(b.Row - sr + 1).Value = Cells(sr, "b")
    Next b
    End Sub

    Don Guillett
    Microsoft Excel Developer
    SalesAid Software
    [email protected]

    From: amar takale 
    Sent: Thursday, July 19, 2012 5:54 AM
    To: [email protected] 
    Subject: $$Excel-Macros$$ Company Name in front of Show its sector


    -- 
    -- 
    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 [email protected]
     

    To unsubscribe, send a blank email to 
mailto:excel-macros%[email protected]
     
     

    -- 
    -- 
    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 [email protected]
     

    To unsubscribe, send a blank email to 
mailto:excel-macros%[email protected]
     
     


  -- 
  -- 
  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 [email protected]
   
  To unsubscribe, send a blank email to 
mailto:excel-macros%[email protected]
   
   

  -- 
  -- 
  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 [email protected]
   
  To unsubscribe, send a blank email to 
mailto:excel-macros%[email protected]
   
   


-- 
-- 
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 [email protected]
 
To unsubscribe, send a blank email to [email protected]
 
 

-- 
-- 
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 [email protected]

To unsubscribe, send a blank email to [email protected]


Reply via email to