ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel Add In Problem (https://www.excelbanter.com/excel-programming/288615-excel-add-problem.html)

Rajagopal C

Excel Add In Problem
 
Hi

I am trying to create a add in that would

1. Create a new sheet

2. based on some logic will copy data from this shhet to the new one.

a. When I ran the following piece of code it does not add a ne
worksheet.

Filename = ActiveCell.Worksheet.Name

Sheets.Add Type:="WorkSheet"
ActiveSheet.Name = "Sheet 2"

Worksheets(Filename).Activate

b. When the following piece of code is hit (line 3) it just stop
processing further.

Value = ActiveSheet.Cells(C.Row, 3).Value
Worksheets("Sheet2").Activate
Worksheets("Sheet2").Cells(Fill_Count, 1).Value = Value

Any help on this

Thanks & Regards
Rajagopal

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 10:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com