Creating changing print ranges

JohnZ1156

Board Regular
Joined
Apr 10, 2021
Messages
157
Office Version
  1. 2021
Platform
  1. Windows
I have an Excel table.
I want to print from the ActiveCell (for now A6771) to column K and last row in table.

The ActiveCell will change from month to month, will not always be A6771.
Need to "highlight" or select from the ActiveCell to column K and the last row in table.
Set print area and print.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Glad to help & thanks for the feedback.
 
Upvote 0
Glad to help & thanks for the feedback.
Did I give you feedback? If not, I would give you 5 Stars.
I'm very new to this message board "thing".
I spend hours and hours googling, and watching YouTube videos just to get the smallest thing to work.
I only wish I knew what is is like to have your knowledge.
Thank you again !!!
 
Upvote 0
I'm trying to find an Excel macro to confirm the current date in the last cell of column A
I found this, but when I tested it, it always returns "No Date", even though I have the current date in the last cell of the column.

Sub macro1()

With Sheet1.Range("A1")
If Not IsDate(.Value) Then
MsgBox "No date"
ElseIf .Value = Date Then
MsgBox "Date is today"
Else
MsgBox "Date is NOT today"
End If
End With

End Sub
 
Upvote 0
As this is a totally different question, you need to start a new thread. Thanks
 
Upvote 0
Exactly the same as when you started this thread.
 
Upvote 0

Forum statistics

Threads
1,214,870
Messages
6,122,019
Members
449,060
Latest member
LinusJE

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