COPY PASTE AS PER CELL VALUE

venumkd

New Member
Joined
Feb 4, 2020
Messages
45
Office Version
  1. 2010
Sirs

I need an Excel VBA / Macro for the following function. This is for a Data Entry Work.

I am having a worksheet containing 3000 worksheets in which 1500 sheets are having contents done manually. These contents are to be copied to other sheets without changing cell formats.

The sheet names to be copied shall be mentioned in Sheet1 of the same workbook in Column A starting from cell A1 to downwards. The sheet names where to copy also shall be given in the same sheet in Column B starting from Cell B1 to downwards against each corresponding Sheet names in Column A.

Thanking you, yours faithfully

VENU P.K.
 
Sir

After replacing the line it shows the Error as

Duplicate Declaration in current scope,

Screenshot attached
 

Attachments

  • Error.png
    Error.png
    137 KB · Views: 4
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
the one highlighted in your picture in post#11
 
Upvote 0
Sir
Line removed.
Now the column widths are maintained, but the row heights are not being maintained
Screenshot images are attached
 

Attachments

  • IMG 1.png
    IMG 1.png
    124.6 KB · Views: 3
  • IMG  2.png
    IMG 2.png
    172.6 KB · Views: 3
Upvote 0
Your latest picture shows that your data contains merged cells
- merged cells cause many challenges for VBA
Plesae supply sample data
XL2BB is tool provided by MrExcel to help you do that
It can be downloaded from here:
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,877
Members
449,056
Latest member
ruhulaminappu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top