Find integer value in big range

Jeroen1964

New Member
Joined
Apr 11, 2019
Messages
1
Hello,

I have a Input Sheet(Sheet1) and a Calc Sheet(Sheet2).
at the inputsheet i have a range (B12:2750) where i have to find only the cells that are filled with an integer.
(The integer is the value that i have to order.)

<vb>
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]Sub PrintNumber()[/FONT]
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]Dim i As Integer
Dim rCell As Range
Dim rRng As Range
Dim xRngVal As Integer[/FONT]
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]Set rRng = Sheets("InputSheet").Range("B12:B2700")
For i = 1 To rRng
xRngVal = rCell.Range("B" & i).Value
Next
MsgBox xRngVal[/FONT]
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]End Sub[/FONT]
<vb>


Next I have to print only the corresponding calc-sheet page on sheet 2, where B12 on sheet 1 coresponds to printing page 1, B13 to page 2 , etc. etc.

<vb>
I have no clue

<vb>

Hope for some assistance

Jeroen
 

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.

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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