Copy/Paste from list of serial numbers to different sheets

qrb661r

New Member
Joined
Mar 31, 2021
Messages
2
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I'm relatively good with excel formulas but not VBA and I've exhausted my Google-Fu skills on this one so any help would be greatly appreciated.

We have 1 sheet with a list of serial numbers in column A. Intent is to sequentially paste it into cell B3 of multiple template property information forms that are all identical except for the serial number, 98 templates to be exact, one for each serial number.

Is there any way to do this with VBA?
 

Attachments

  • List of SNs.PNG
    List of SNs.PNG
    7.8 KB · Views: 27
  • Template Sheets.PNG
    Template Sheets.PNG
    22.6 KB · Views: 24

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Welcome to MrExcel Message Board.
After Paste of Each Serial Number to Cell B3, What you want? Save template as PDF? Save it as new sheet? or ....
 
Upvote 0
if you want to Add specific sheet for Each Serial Number & also add link to them, you can use this macro.
Notes: I supposed your serial numbers sheet name is Sheet1 and template sheet is Sheet2 and sheets add after Sheet2.
VBA Code:
Sub AddSerialtoTemplate()
Dim i As Long, Lr As Long, J As Long
Lr = Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Row
For i = 2 To Lr
    Sheets("Sheet2").Copy After:=Sheets(i)
    Sheets(i + 1).Name = Sheets("Sheet1").Range("A" & i).Value
    Sheets(i + 1).Range("C3").Value = Sheets("Sheet1").Range("A" & i).Value
    Sheets("Sheet1").Hyperlinks.Add Anchor:=Sheets("Sheet1").Range("A" & i), Address:="", SubAddress:= _
        "'" & Sheets("Sheet1").Range("A" & i).Value & "'!C3", TextToDisplay:=Sheets("Sheet1").Range("A" & i).Value
Next i
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,961
Latest member
nzskater

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