Macro to create new workbook and copy data
Solved/Closed
                                    
                        sujith                    
                                    -
                            Mar 15, 2010 at 09:24 AM
                        
Rthmanden Posts 2 Registration date Tuesday September 6, 2016 Status Member Last seen September 13, 2016 - Sep 12, 2016 at 09:53 AM
        Rthmanden Posts 2 Registration date Tuesday September 6, 2016 Status Member Last seen September 13, 2016 - Sep 12, 2016 at 09:53 AM
        Related:         
- Vba open new workbook
- Vba case like - Guide
- Vba matrix multiplication - Excel Forum
- Excel online vba - Guide
- Vba copy data from one workbook to another - Guide
- Vba timer - Guide
14 responses
                
        
                    sujithjayan
    
        
                    Posts
            
                
            3
                
                            Registration date
            Monday March 15, 2010
                            Status
            Member
                            Last seen
            March 16, 2010
            
            
                    10
    
    
                    
Mar 16, 2010 at 08:22 AM
    Mar 16, 2010 at 08:22 AM
                        
                            
                    Yep I did the same and an error window poped up saying "Run-time error '9':  subscript out of range" and then when I hit Debug it highlights- Sheets("Sheet1").Select  in the VB code page. There was a worksheet created with name tempsheet with no data in it.
                
                
             
        
    
    
    
    
Mar 16, 2010 at 09:46 AM
Sheets("Sheet1").Select
Where is says Sheet1, enter your data sheet name. So if my sheet is called Data 1, I would change it to
Sheets("Data 1").select
This lines appears more than once, so you have to make changes in all it occurances
Dec 20, 2011 at 01:36 PM
Dec 27, 2011 at 02:25 PM
I would say most probably. The name needs to be the legal name by which a file can be saved
Mar 14, 2012 at 07:49 AM
thanks
Mar 25, 2012 at 04:46 PM