Macro needed to add items to worksheet

tinker11

New Member
Joined
Aug 14, 2019
Messages
8
I have a spreadsheet with hundreds of tabs attached. I would like to add some data to each tab. Data would be the same but will change with each tab due to data that is already there. I would like to add this new item after the last item on the page.
see mockup below where the red font I may change with each tab in the spreadsheet. all help is appreciated !

1
x
1xx
1fake data
1
fake data
1fake data
12
fake data
4
fake data
#here is where I want to add the new item and qty.
<colgroup><col width="154" style="width: 116pt; mso-width-source: userset; mso-width-alt: 5632;"> <col width="356" style="width: 267pt; mso-width-source: userset; mso-width-alt: 13019;"> <tbody> </tbody>
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
original data(aka fake data in this post) is already on the tab..but each tab has a different number of fake data lines. I would like macro to find last line (in this example qty 4 then "fake data", go down one line and add a qty of 10 and the description "DL-CLIP"
I can't figure out how to macro to go to last line, advance one line, add that data, then go to next tab, go to last line, advance one line, etc..thru entire worksheet.
does this help?
 
Upvote 0
Hello,

This code will copy the bottom row of the current tab to every other tab in the workbook.

Code:
Sub COPY_TO_ALL_TABS()
    Application.ScreenUpdating = False
    Rows(Range("A" & Rows.Count).End(xlUp).Row).Copy
    For MY_SHEETS = 1 To ActiveWorkbook.Sheets.Count
        With Sheets(MY_SHEETS)
            If ActiveSheet.Name <> Sheets(MY_SHEETS).Name Then
                .Range("A" & .Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial (xlPasteAll)
            End If
        End With
    Next MY_SHEETS
    Application.ScreenUpdating = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,213,561
Messages
6,114,312
Members
448,564
Latest member
ED38

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