Excel Macro for different selected cells

Wasiwasi

New Member
Joined
Jun 22, 2015
Messages
1
Hi! :)

I have a big problem with a macro. I have a excel sheet with different data. I have sometimes to print manually more than 50 number. For example:
001info 1
002info 2
003etc...
004
005
006
007
008
009
010

<tbody>
</tbody>

And I have in other sheet a page for printing the bill number (e.g. 001) with its respective information (info 1).
What I need is to copy the number (e.i. 001) to the other sheet. This sheet will automatically actualize the information
with the information of bill 001. And then I can print it. I wanna do a macro to make this steps automatically printing
all bill pages.
I had:

Sub Makro4()
' Makro2 Makro


For Each c In ActiveCell.CurrentRegion.Cells 'cell selected in sheet 1
Sheets("sheet 2").Select
Range("A3:B4").Value = c.Value
ActiveCell.FormulaR1C1 = c.Value
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
IgnorePrintAreas:=False
Sheets("sheet 1").Select
Next
End Sub


but it doesn't work. any ideas? :confused:

Thank you in advance
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,215,276
Messages
6,124,006
Members
449,137
Latest member
abdahsankhan

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