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 !

[TABLE="width: 383"]
<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>[TR]
[TD="width: 154, bgcolor: transparent"]1
[/TD]
[TD="width: 356, bgcolor: transparent"]x
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]1[/TD]
[TD="bgcolor: transparent"]xx
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]1[/TD]
[TD="bgcolor: transparent"]fake data[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]1
[/TD]
[TD="bgcolor: transparent"]fake data
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]1[/TD]
[TD="bgcolor: transparent"]fake data[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]12
[/TD]
[TD="bgcolor: transparent"]fake data[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]4
[/TD]
[TD="bgcolor: transparent"]fake data[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]#[/TD]
[TD="bgcolor: transparent"]here is where I want to add the new item and qty. [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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,223,885
Messages
6,175,184
Members
452,615
Latest member
bogeys2birdies

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