Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Excel VBA Macro: Save Selected Range as PDF (and Center on Page)

Автор: greggowaffles

Загружено: 2022-03-04

Просмотров: 9314

Описание:

💼 Hire Me for Excel VBA Automation
Need help automating your Excel workflows? I specialize in building custom Excel VBA solutions to save you time and eliminate repetitive tasks.
👉 https://www.upwork.com/freelancers/~0...

Excel VBA Macro: Save Selected Range as PDF (and Center on Page). In this video, we go over how to write code that allows us to select a range on a worksheet and only use that selected range to create a pdf, save the pdf, and align the range in the center of the page. We also go over how to include icons from excel in our new pdf.

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\" & _
"Youtube Videos\Test\Cookie Sales Reports\" & _
"Cookie Sales Report " & _
ws.Range("B11").Text & ".pdf", OpenAfterPublish:=True

End Sub

#ExcelVBA #ExcelMacro

Excel VBA Macro: Save Selected Range as PDF (and Center on Page)

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Excel VBA Macro: Save Range (as PDF) and Send as Attachment in Email

Excel VBA Macro: Save Range (as PDF) and Send as Attachment in Email

VBA — сохранить лист счёта в формате PDF — в указанную папку | Имя файла на основе значения ячейки

VBA — сохранить лист счёта в формате PDF — в указанную папку | Имя файла на основе значения ячейки

Excel VBA Macro: Create Word Document (Template File) Based on Cell Values

Excel VBA Macro: Create Word Document (Template File) Based on Cell Values

How to Create a Data Entry Form in Excel

How to Create a Data Entry Form in Excel

Excel VBA Save Range to PDF

Excel VBA Save Range to PDF

Create PDF from an Excel sheet using a Single Click (Macro for Generating PDFs from Excel sheets)

Create PDF from an Excel sheet using a Single Click (Macro for Generating PDFs from Excel sheets)

Excel VBA Macro: Save Range (as Image) and Attach to Email

Excel VBA Macro: Save Range (as Image) and Attach to Email

Excel VBA: Referring to Ranges & Writing to Cells (Range, Cells, Offset, Names)

Excel VBA: Referring to Ranges & Writing to Cells (Range, Cells, Offset, Names)

Excel VBA Macro: Export Selected Range as Image (Save Range as Picture)

Excel VBA Macro: Export Selected Range as Image (Save Range as Picture)

Excel VBA - Copy Paste Data Range From Another Worksheet or Workbook - Part 5

Excel VBA - Copy Paste Data Range From Another Worksheet or Workbook - Part 5

The Windows 11 Disaster That's Killing Microsoft

The Windows 11 Disaster That's Killing Microsoft

VBA to BROWSE & COPY Data from SELECTED File in Excel

VBA to BROWSE & COPY Data from SELECTED File in Excel

Free Excel VBA Course #36 - Save Excel File as PDF using VBA (Entire Workbook or Individual Sheet)

Free Excel VBA Course #36 - Save Excel File as PDF using VBA (Entire Workbook or Individual Sheet)

Excel VBA to Save Data to Another Workbook

Excel VBA to Save Data to Another Workbook

Combine Data From Multiple Excel Sheets Fast (VSTACK & HSTACK)

Combine Data From Multiple Excel Sheets Fast (VSTACK & HSTACK)

Полное руководство по копированию данных с помощью Excel VBA

Полное руководство по копированию данных с помощью Excel VBA

Excel VBA Macro: Email PDF Tailored for Specific Recipient(s) Based on Cell Value

Excel VBA Macro: Email PDF Tailored for Specific Recipient(s) Based on Cell Value

Excel VBA Macro: Send Email with Table in the Body (Step-by-Step Tutorial)

Excel VBA Macro: Send Email with Table in the Body (Step-by-Step Tutorial)

Макрос Excel VBA: сохранение активного листа в виде нескольких PDF-файлов (на основе списка значе...

Макрос Excel VBA: сохранение активного листа в виде нескольких PDF-файлов (на основе списка значе...

Unlock Excel Secrets: Magic Search Bar You NEVER Knew About!

Unlock Excel Secrets: Magic Search Bar You NEVER Knew About!

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com