Тёмный

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

greggowaffles
Подписаться 6 тыс.
Просмотров 682
50% 1

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\" & _
"RU-vid Videos\Test\Cookie Sales Reports\" & _
"Cookie Sales Report " & _
ws.Range("B11").Text & ".pdf", OpenAfterPublish:=True
End Sub
#excelmacro #excelvba

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
荧光棒的最佳玩法UP+#short #angel #clown
00:18
Add Buttons To Selection Excel VBA Macro
4:50
Просмотров 6 тыс.
The Home Server I've Been Wanting
18:14
Просмотров 172 тыс.
Google Data Center 360° Tour
8:29
Просмотров 5 млн
A Very Exponential Equation
8:27
Просмотров 2,6 тыс.