Hi, newbie to VBA here. I have been researching and trying many ways to select and print a range, and I cannot find a way to print cells with values only.
In my case, I create a list of entries through the day. I am creating a button so I can print all of these entries at the end of the day.
These entries are sorted by column, and I will only be printing one column at a time.
The code that I have tried that isn't working is below. I realize that I am not using the "End" in its proper syntax. It was a futile effort after trying many other ways to code it in.
Any help in getting this up and running is much appreciated!
In my case, I create a list of entries through the day. I am creating a button so I can print all of these entries at the end of the day.
These entries are sorted by column, and I will only be printing one column at a time.
The code that I have tried that isn't working is below. I realize that I am not using the "End" in its proper syntax. It was a futile effort after trying many other ways to code it in.
Code:
Sub Button1_Click()ActiveSheet.PageSetup.PrintArea = Range(A5, End(xlDown))
ActiveWindow.SelectedSheets.PrintOut ' print
End Sub
Any help in getting this up and running is much appreciated!