objdoc

  1. Seba Robles

    [VBA] Copy Range from Excel Paste into Word Autofit Contents to Window & Page & Keep Source Format

    The title pretty much sums up what I am trying to accomplish but have had no luck whatsoever. I'm trying to copy a range from an excel worksheet to word but when I do, it changes the text formatting and the table extends beyond the first page (both to the right and onto the next page). So I'm...
  2. L

    ActiveX issue

    Hello guys, I want to write an excel macro that opens up sheets of word in directories per request and prints them out I already have a full path created for each file, so all i really need to do is: 1) Open the word document with specific name 2) Print out only page 2, this i can achieve...
  3. M

    Excel VBA and WORD question

    Sub wordopen() Dim objWord Set objWord = CreateObject("Word.Application") Dim objDoc Set objDoc = objWord.Documents.Open("C:\HR-Benefits\Enrollment\LifeInsurance-CoreAndSupplemental.docx") objDoc.PrintOut objDoc.Close objWord.Quit End Sub I wrote the above code and it works. From...
  4. T

    Copy a range sheet and paste in Microsoft word as an image using vba

    Please I need you guys help on this...I successfully copied and pasted a sheet as an image on word using the below VBA codes Sub luxation () Dim objWord, objDoc As Object Activewindow.view=xlNormalView Range(“B2:S73”).select Selection.copy picture Appearance:=xlscreen, Format:=xlPicture...
  5. S

    Need Loop help

    Hi all, I am using the macro to get the single document details. but in the folder i have more than 100 document. can you please help me for loop. Public Sub test() Dim objWord As Object Dim objDoc As Object Set objWord = CreateObject("Word.Application") Location =...
  6. R

    Bad filename error

    Hi all, been some time since I've worked VBA. Pulled up an old code but it isn't working. Basically, I'm trying to open a Word document to do some data crunching. Dim objWord Dim objDoc Set objWord = CreateObject("Word.Application") Set objDoc =...

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