Excel VBA Tip: Add Button to Your Macro (Alternative Options)

  Рет қаралды 645

greggowaffles

greggowaffles

Жыл бұрын

Excel VBA Tip: Add Button to Your Macro (Alternative Options)
💥Subscribe: / @greggowaffles
Code:
Sub save_range_as_pdf()
Dim pdf_range As Range
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets("Sheet1")
Set pdf_range = ws.Range("B2:C14")
ws.PageSetup.CenterHorizontally = True
pdf_range.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:="C:\Users\greggowaffles\Documents\" & _
"KZbin Videos\Test\Cookie Sales Reports\" & _
"Cookie Sales Report " & _
ws.Range("B11").Text & ".pdf", OpenAfterPublish:=True
End Sub
#excelmacro #excelvba

Пікірлер
Extending ArchiMate with Tagged Values in Sparx
6:37
Bert Dingemans
Рет қаралды 14
5 Excel Secrets You'll Be Embarrassed You Didn't Know
17:32
Excel Campus - Jon
Рет қаралды 126 М.
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 36 МЛН
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 9 МЛН
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 98 МЛН
Google Search Clicks: Do Customers Prefer Ads or Organic Listings?
10:55
Israel Saucedo DIY Home Services SEO
Рет қаралды 101
Excel VBA Macro: Insert PivotTable (in Email Body)
9:19
greggowaffles
Рет қаралды 598
EASILY Make an Automated Data Entry Form in Excel
14:52
Kenji Explains
Рет қаралды 443 М.
How to Get List of File Names in a Folder using Excel
5:40
Excel Weez
Рет қаралды 6 М.
Excel VBA Explained for Beginners
7:47
Simon Sez IT
Рет қаралды 106 М.
How to Create and Use Excel Macros 😎
13:43
Website Learners
Рет қаралды 46 М.
Learn Macros in 7 Minutes (Microsoft Excel)
7:40
Cody Baldwin
Рет қаралды 1,8 МЛН
Excel VBA - Clear Invoice and Automate Next Invoice Number
10:00
Chester Tugwell
Рет қаралды 90 М.