Real-life Word App Automation Using VBA. Read/write to Word Document, Publish, Print and more

  Рет қаралды 84,227

VBA A2Z

VBA A2Z

Күн бұрын

Real-life Word App Automation Using VBA. Read/write to Word Document, Publish, Print and more
Advanced VBA on how to work with ContentControls and InlineShapes.
Next episode: • Advanced VBA Word Auto...
Subscribe, Like, and Comment. 🙏Thanks for watching.
You can now support by buying any of the Projects or Source Code.
📥Downloads: pamaitech.com/downloads/
👍 Support: paypal.me/pamaitech
✉️ Contact: contact@pamaitech.com
📌What to watch next:
Playlist: kzfaq.infoplaylists
Videos: kzfaq.infovideos
#VbaA2z
More read:
docs.microsoft.com/en-us/visu...
docs.microsoft.com/en-us/offi...

Пікірлер: 199
@holieh5301
@holieh5301 4 жыл бұрын
Really appreciate your knowledge sharing. I have personally learned a lot from your channel. Keep it going. Many thanks!
@VBAA2Z
@VBAA2Z 4 жыл бұрын
My pleasure!
@WeningWang
@WeningWang Жыл бұрын
by far the best and most practical word automation tut. thank you, my friend.
@VBAA2Z
@VBAA2Z Жыл бұрын
Glad it helped
@manojkumarbehera7434
@manojkumarbehera7434 3 жыл бұрын
Thank you for creating such an amazing content. I really appreciate your works. Understood many things after watching repeatedly.😀
@VBAA2Z
@VBAA2Z 3 жыл бұрын
Happy to hear that! Thanks for watching!
@JanKowalski-hk5cg
@JanKowalski-hk5cg 2 жыл бұрын
I have followed Your instructions, all works perfectly. Great Thanks
@VBAA2Z
@VBAA2Z 2 жыл бұрын
Great to hear!
@jamesh-kc7rk
@jamesh-kc7rk Жыл бұрын
Your channel is gem for VBA enthusiasts
@VBAA2Z
@VBAA2Z Жыл бұрын
wow, thanks!
@osamasami5193
@osamasami5193 6 ай бұрын
Your channel is gem for vba enthusiasts
@kingsoko5319
@kingsoko5319 Жыл бұрын
Your tutorials are too the point and very practical, thank you
@VBAA2Z
@VBAA2Z Жыл бұрын
You're welcome!
@dk81
@dk81 3 жыл бұрын
Thank you. Learned a lot from this video. VBA is very powerful programming language for automation.
@VBAA2Z
@VBAA2Z 3 жыл бұрын
you're welcome. glad to hear that!
@ekilunewmai7033
@ekilunewmai7033 Жыл бұрын
Hi, thank you so much for the video. I am a beginner and I learned so much from your channel
@shellyhangshing397
@shellyhangshing397 2 жыл бұрын
thank you. Very informative and easy to follow. Keep up good work
@VBAA2Z
@VBAA2Z 2 жыл бұрын
Thanks, will do!
@shellynomis7368
@shellynomis7368 2 жыл бұрын
Excellent and professional. thank you
@VBAA2Z
@VBAA2Z 2 жыл бұрын
You are welcome!
@AnalyticsInDetails
@AnalyticsInDetails 3 жыл бұрын
Great work done highly appreciated.
@VBAA2Z
@VBAA2Z 3 жыл бұрын
Thank you! Cheers!
@melindahitech3369
@melindahitech3369 2 жыл бұрын
Another amazing content! super thanks!
@VBAA2Z
@VBAA2Z 2 жыл бұрын
Glad you like them!
@marinospohr4676
@marinospohr4676 4 жыл бұрын
Thank you! Nice tutorial.
@VBAA2Z
@VBAA2Z 4 жыл бұрын
You're welcome!
@rainertorka2082
@rainertorka2082 3 жыл бұрын
thanks all your tutorials are great
@VBAA2Z
@VBAA2Z 3 жыл бұрын
You are welcome!
@salamikuda6459
@salamikuda6459 2 жыл бұрын
Brilliant tutorial. Many thanks
@VBAA2Z
@VBAA2Z 2 жыл бұрын
Glad it was helpful!
@jamesh-kc7rk
@jamesh-kc7rk Жыл бұрын
Thanks and keep up the great work !
@VBAA2Z
@VBAA2Z Жыл бұрын
Thanks, will do!
@andyest8580
@andyest8580 4 жыл бұрын
very informative, thanks sir
@pamchamzell4489
@pamchamzell4489 4 жыл бұрын
Very useful 👍🏻 thanks for the video
@VBAA2Z
@VBAA2Z 4 жыл бұрын
Glad it was helpful!
@joybyu1231
@joybyu1231 3 жыл бұрын
Great tutorials.thank you soo much
@VBAA2Z
@VBAA2Z 3 жыл бұрын
You're very welcome!
@GiselleBrat
@GiselleBrat Жыл бұрын
great explanation! defenitely worth my time
@VBAA2Z
@VBAA2Z Жыл бұрын
Great to hear!
@bindeeseaks9950
@bindeeseaks9950 2 жыл бұрын
this is brilliant! many thanks
@VBAA2Z
@VBAA2Z 2 жыл бұрын
You're very welcome!
@lilynewmai8314
@lilynewmai8314 3 жыл бұрын
Leaning many things from you sir. thanks alot.
@VBAA2Z
@VBAA2Z 3 жыл бұрын
So nice of you
@susilsxzen-ff1zn
@susilsxzen-ff1zn Жыл бұрын
The video was really useful. Thank you
@VBAA2Z
@VBAA2Z Жыл бұрын
you're most welcome!
@Manguilee-qi8to
@Manguilee-qi8to Жыл бұрын
great work as always. Learned alot from you sir
@VBAA2Z
@VBAA2Z Жыл бұрын
I appreciate that!
@bnancy3699
@bnancy3699 4 жыл бұрын
thanks for this helpful tutorial.
@VBAA2Z
@VBAA2Z 4 жыл бұрын
You're welcome!
@kiloonzjico7953
@kiloonzjico7953 2 жыл бұрын
Absolutely brilliant
@VBAA2Z
@VBAA2Z 2 жыл бұрын
thanks!
@daxteoh27
@daxteoh27 2 жыл бұрын
Hi Pamai, Do you know how to select non-contiguous cells in Word table with VBA?
@LiangInfinite
@LiangInfinite Жыл бұрын
superb, thank you
@VBAA2Z
@VBAA2Z Жыл бұрын
you're most welcome
@smallone8795
@smallone8795 2 жыл бұрын
Thanks so much I have learnt a lot.
@VBAA2Z
@VBAA2Z 2 жыл бұрын
You are very welcome
@vanessafontaine5737
@vanessafontaine5737 Жыл бұрын
Thank you for this video...all worked perfectly with what I wanted to do with the text portions of my "automated report". But now I have to also automate copying and pasting charts from Excel into specific locations on the same word document. Is this something that can be done with VBA?
@VBAA2Z
@VBAA2Z Жыл бұрын
You're welcome! May be try something like this kzfaq.info/get/bejne/mq-horuK3sWnnJs.html
@LoneIcon
@LoneIcon 2 жыл бұрын
question if i have rows of different person - i can also loop the record, right?
@mielkew27
@mielkew27 Жыл бұрын
Nice video, how can I turn off the warning message for print margin? My word file do have tables that exceeds print margin, I want to bypass this warning by still printing it.
@georgekhaba6436
@georgekhaba6436 2 жыл бұрын
time table : @6:53 the finished layout of the excel that will import the data from word @7:27 linking word doc for input and excel sheet for output @8:32 the coding of the vba
@VBAA2Z
@VBAA2Z 2 жыл бұрын
Thanks George!
@user-rx2ei2uu8q
@user-rx2ei2uu8q Жыл бұрын
Wowow this is great
@VBAA2Z
@VBAA2Z Жыл бұрын
thanks!
@stef_anie777
@stef_anie777 Жыл бұрын
Thank you for this! I have successful written the codes to execute my form using the control form button as you illustrated. Then, I also included a clear form macro to clear the contents, so that users could run the exportToWord macro repeatedly using different information. However, I cannot get the exportToWord macro to run again without completely closing out of the excel file and then re-opening. Is there any way to get around this? Some type of loop or call command? Or is there something I need to force closed to be able to do this?
@dan_draft
@dan_draft Жыл бұрын
He used auto instancing in Dim WordApp as New Word.Application So your clear contents command did not work. Solution: Declare the WordApp like this Dim WordApp as Word.Application Then write this code before WordApp.Visible =True Set WordApp = New Word.Application I hope this helps. I'm on my phone rn so I cannot test it myself.
@lookMy75
@lookMy75 6 ай бұрын
Hi! Do you have any videos on how to create a customize ribbon on Visual Studio for PowerPoint Add-in where I can put different square colors where I click the square color and make it change a shape with that color? Same with a border color and text color?
@PaulPhoenixRana
@PaulPhoenixRana 3 жыл бұрын
One word...awesome....
@VBAA2Z
@VBAA2Z 3 жыл бұрын
Thank you so much 😀
@Rahul-sn1wn
@Rahul-sn1wn 4 жыл бұрын
Thanks there
@michaelbedano3265
@michaelbedano3265 4 жыл бұрын
Thank you so much for sharing your knowledge. Really appreciate it. Do you have any mobile application coming from Excel. Looking forward for this tutorial. God bless.
@VBAA2Z
@VBAA2Z 4 жыл бұрын
Thanks for your note, I am going to cover JS & Office mobile apps integration soon. Do not forget to subscribe for upcoming videos.
@michaelbedano3265
@michaelbedano3265 4 жыл бұрын
@@VBAA2Z yeah I already subscribe to your awesome channel. Is it possible to have a mobile application that is connected to Ms Excel? Looking forward to that. 😊
@mercedescostagarcia7575
@mercedescostagarcia7575 2 жыл бұрын
Is there a way to add a bullet list of items in a word doc from excel cells? The bookmarks idea would work if the list was always of the same number of items, but what if the number of items changes?
@VBAA2Z
@VBAA2Z 2 жыл бұрын
Best to record and edit accordingly
@alializadeh8195
@alializadeh8195 2 жыл бұрын
Thank you...
@VBAA2Z
@VBAA2Z 2 жыл бұрын
You're welcome!
@fabianreurekas9996
@fabianreurekas9996 3 жыл бұрын
Thank you!
@VBAA2Z
@VBAA2Z 3 жыл бұрын
You're welcome! thanks for watching.
@farhandeen6341
@farhandeen6341 2 жыл бұрын
Hello, thanks for this wonderful tutorial. Can you please tell me how to program it to be entering these values from a nice UI without opening excel.
@VBAA2Z
@VBAA2Z 2 жыл бұрын
please check these videos kzfaq.info/get/bejne/pp9jfbWbuay7nZc.html
@NotSoLittleBro
@NotSoLittleBro 8 ай бұрын
Does this work throughout a document? For instance if you have “contract date” in multiple places throughout the document, would it populate all of those fields?
@VBAA2Z
@VBAA2Z 8 ай бұрын
you'll need to design the conditions so it appears where it is needed. VBA is flexible
@user-fp4mh2ki7c
@user-fp4mh2ki7c Жыл бұрын
thank you
@VBAA2Z
@VBAA2Z Жыл бұрын
you're most welcome!
@carmelitaculanag-mckenna7383
@carmelitaculanag-mckenna7383 7 ай бұрын
I'm working on a word form, when filling out, there's already info known and sometime need to input a new info. example, a name and address. i can make a combo box of the ff names and also if not in the selection can type one. then the name is link to another item like address that when one name is selected the address auto-populate on the address item. this is to avoid continuous mistake for someone filing up a form. and also if the name is not on the selection, a a new name can be added and write the address. your help would really be halpful. Thanks!
@CezaryDamianRosa
@CezaryDamianRosa 3 жыл бұрын
Hi! Thank you for this tutorial. I am a begginer in VBA. I followed your code. When I run it, I get User-defined type not defined with reference to Sub ExportToWord (). Could you give me a hint what can be wrong? Additionally, I was trying to look for this material to download on your website, but unfortunately it looks missing. Could you refer where I can find it?
@VBAA2Z
@VBAA2Z 3 жыл бұрын
Ensure word library is referenced.
@giancarloschafloqueguzman9918
@giancarloschafloqueguzman9918 3 жыл бұрын
Hi, excellent video How can I do if I have several times that I have to enter the same data, in order not to enter different markers for the same text, I tried to use cross reference but it has not worked
@VBAA2Z
@VBAA2Z 3 жыл бұрын
If you want to write to same range multiple times without closing the file first get the bookmark range address and keep reusing it by creating bookmarks on runtime. hope it helps.
@m.n.953
@m.n.953 2 жыл бұрын
thanks for nice explanation/ i have a question pleas / if i need to add a command botton inside the word document or templat and write a code for it that save the document as the NAME lable field (plain text content control), in a specific bath directory, how can i write the code pleas ? can you drope the line code that do this when i click in this command botton.? pleas your answe and thank you in advance.
@wangniperinmai
@wangniperinmai Жыл бұрын
thanks!
@VBAA2Z
@VBAA2Z Жыл бұрын
No problem!
@CodeLikeProz-dp8qr
@CodeLikeProz-dp8qr Жыл бұрын
thank you so much!
@VBAA2Z
@VBAA2Z Жыл бұрын
you're most welcome!
@InsideMyWall
@InsideMyWall 2 жыл бұрын
Very useful. How to browse a folder or file via Excel VBA, copy the name and paste it in a specified word file??
@VBAA2Z
@VBAA2Z 2 жыл бұрын
Watch the video: kzfaq.info/get/bejne/m66leLeXm9_LpKM.html
@inukpaw
@inukpaw 4 жыл бұрын
Thank you
@VBAA2Z
@VBAA2Z 4 жыл бұрын
You're welcome
@ningsan1054
@ningsan1054 Жыл бұрын
Thanks
@VBAA2Z
@VBAA2Z Жыл бұрын
Welcome
@nAJEEbKhan-um9wo
@nAJEEbKhan-um9wo 2 жыл бұрын
Dear VBA.A2Z. you have done a great job, can you make it like to save every letter saves into same document using EXCEL ?????????? Thank you So much for you knowlede sharing.
@VBAA2Z
@VBAA2Z 2 жыл бұрын
You're most welcome. Will share more examples thank you
@ayushmittal8624
@ayushmittal8624 4 жыл бұрын
How to transfer data including tables and paragraphs in different worksheets (having user form containing check boxes, selection button, list etc to choose from) into a single word document at a particular location only under different clauses using vba. For example word document first page is cover sheet having project name client name date , 2nd page is index sheet with clause number and page reference. 3rd page starts with clause 1.0 as introduction. 2 scope of supply and so on. It should take data from excel and paste at particular locations on click of button
@VBAA2Z
@VBAA2Z 4 жыл бұрын
Check this 2 videos. It'll give you google ides to work with Word Objects and also with word table. kzfaq.info/get/bejne/gdWEqNxql9vGn40.html kzfaq.info/get/bejne/iLeXgtunm9TWdWQ.html Create a dummy table in template word file and write to it. All the best!
@ramzamthel8014
@ramzamthel8014 16 күн бұрын
thanks
@kchewang8331
@kchewang8331 4 жыл бұрын
👍👍
@tyanthem3966
@tyanthem3966 2 ай бұрын
Fast pace, but nice work!
@VBAA2Z
@VBAA2Z 2 ай бұрын
Thanks!
@iftaminka2804
@iftaminka2804 3 жыл бұрын
Hello, is it possible for doing the reverse process, that is to export/to link the data from word to excel? the word doc is as same as your lease agreement's sample, thankyou
@VBAA2Z
@VBAA2Z 3 жыл бұрын
Yes you can. Add reference to Excel Excel Object Library from Word
@iftaminka2804
@iftaminka2804 3 жыл бұрын
@@VBAA2Z thanks. How if I wanna link data from word to another word file? Maybe I missed your tutorial about this, thanks again
@sandeepgurnani2200
@sandeepgurnani2200 2 жыл бұрын
Is adding bookmarks mandatory to import the excel fields ? Can it be done without adding bookmarks also ?
@VBAA2Z
@VBAA2Z 2 жыл бұрын
you can add to range as below Set myRange = ActiveDocument.Range(Start:=0, End:=10)
@sivaajjapu6205
@sivaajjapu6205 2 жыл бұрын
How can we add ribbon tabs and user defined groups into that tabs for the application, Is there any reference video available for this??
@VBAA2Z
@VBAA2Z 2 жыл бұрын
Yes you can please check below link kzfaq.info/get/bejne/r9Z5ZbmJvse8gX0.html
@tonybarker4240
@tonybarker4240 3 жыл бұрын
Great Tutorial - thank you No matter what I do with the date I cannot get it to copy to the Word Document in the same format My spreadsheet displays as 22 January 2021 but when you view the Word Document it displays as 22/01/2021 Please help
@VBAA2Z
@VBAA2Z 3 жыл бұрын
have you tried formatting it like below bookmark object? rng_cdate.Text = Format(Range("Contract_Date"), "MMMM dd, yyyy")
@satishacharya7403
@satishacharya7403 3 жыл бұрын
Can we send data from one excel to multiple word documents? Like, if we want same data on different word documents but on different fields.
@VBAA2Z
@VBAA2Z 3 жыл бұрын
yes create multiple doc objects and replicate referring and write data there
@ajayagrawal6334
@ajayagrawal6334 4 жыл бұрын
Great Video !! Can you make a video to replace images in "Word" using "Excel" along with sizing of those images !!
@VBAA2Z
@VBAA2Z 4 жыл бұрын
thanks and great suggestion! will share something here or on blog.
@ajayagrawal6334
@ajayagrawal6334 4 жыл бұрын
@@VBAA2Z I'll do check the blog out but the video would be great for me & all viewers as well!!
@helarylaurine5077
@helarylaurine5077 2 жыл бұрын
Hi, great tutorial! Can this be done using visual studio instead? Thanks.
@VBAA2Z
@VBAA2Z 2 жыл бұрын
Yes, absolutely
@VBAA2Z
@VBAA2Z 2 жыл бұрын
please check here kzfaq.info/get/bejne/gbaDqNmDuN3LmGg.html
@helarylaurine5077
@helarylaurine5077 2 жыл бұрын
@@VBAA2Z thank you so much 👍
@jeffreyrivera2291
@jeffreyrivera2291 2 жыл бұрын
Bro, do you have a tutorial of this from the scratch. You should also explain on how can we add the object library. It's already open on yours
@VBAA2Z
@VBAA2Z Жыл бұрын
Hi Jeffrey, this is from scratch. To add reference simply goto Tools >> References >> [ check ] Microsoft Word *** library >> click on OK
@mahrusalhusen6335
@mahrusalhusen6335 Жыл бұрын
hey i have problem in error 6124 "You are not allowed to edit this selection because it is protected" do you know to fix this proble?
@evanizboss1927
@evanizboss1927 2 ай бұрын
What is the trick to reference the same word bookmark multiple times? I tried to use a cross reference, but that doesn't seem to work
@naveedmohammad9266
@naveedmohammad9266 2 жыл бұрын
hello i have an error of 5914 my word document is showing me up with read only format only i have used all posibilities to remove protection sheet but still my document is opening in read only format
@VBAA2Z
@VBAA2Z 2 жыл бұрын
can you share your code?
@haiyuyue5333
@haiyuyue5333 Жыл бұрын
Hi! When I run the code it prompted that "Run-time error '6124' You are not allowed to edit this selection because it is protected". For the set rng_cdate it runs smoothly, but for the tenant.Text=Range("Tenant").Value and landlord.Text=Range("Landlord").Value it failed. Could u please suggest how can I fix the error?
@VBAA2Z
@VBAA2Z Жыл бұрын
Try ActiveDocument.Unprotect Password:="your password" before running the code
@dallalstreet1775
@dallalstreet1775 3 жыл бұрын
thanks VBA A2Z !! can you make play list for excel word and powerpoint separarely
@VBAA2Z
@VBAA2Z 3 жыл бұрын
Sure, please check below. PPT: kzfaq.info/sun/PLo0aMPtFIFDoSJKFqFpjjUOVvpPvSOag8 Word: kzfaq.info/sun/PLo0aMPtFIFDpoFM9Th51ute2796xwPg7J All playlist: kzfaq.infoplaylists?view=1
@lubna3002
@lubna3002 7 ай бұрын
Hi. Thanks a lot But how can i save the file with different name each time without changing it in macros
@VBAA2Z
@VBAA2Z 7 ай бұрын
create a template file and open that instead of the code file
@carinsnell3313
@carinsnell3313 3 жыл бұрын
I created this document minus the export to PDF. When running the macro the word file is opening as read only and will not update. I’m uncertain how to change the set doc = WordApp.Documents.Open([WordPath].text, , True) I’m also getting a VBA 400 error Thank you!
@VBAA2Z
@VBAA2Z 3 жыл бұрын
try and google this error. This is something to do with your office installation and not the code.
@rizkifernando1975
@rizkifernando1975 2 жыл бұрын
Same problem
@jalalkasmani2575
@jalalkasmani2575 3 жыл бұрын
How can I find a text in header of a doc and return page number using VBA ?
@VBAA2Z
@VBAA2Z 3 жыл бұрын
try something like this 'wRange.Find here If wRange.Find.Execute = True Then x = wRange.Information(wdActiveEndPageNumber)
@handikawibowo55
@handikawibowo55 2 жыл бұрын
Hi ! I'm having an issue with an error saying 'Run-time error 6124 : You are not allowed to edit this selection because it is protected'. This occurs for the tenant.Text = Range("tenant").Value code. previously this code work properly on office 2019 but error on office 2016
@VBAA2Z
@VBAA2Z 2 жыл бұрын
When you go to the Developer tab, and click the "Restrict Editing" button it'll to show task pane with protection in current document. Else it is possible you're writing to uneditable region (like the end or beginning of a row).
@handikawibowo2409
@handikawibowo2409 2 жыл бұрын
@@VBAA2Z Thanks for your feedback. I've follow your suggestion and checked on restrict editing, but on formating restriction and editing restriction already on unchecked position. And If else any issue on uneditable region, this code should be error on office 2019 also right?
@sonisinghsony
@sonisinghsony 3 жыл бұрын
hi sir this is really help full for me thanks for this tutorial but i have one question is their any possibility of automation between Word and publisher
@VBAA2Z
@VBAA2Z 3 жыл бұрын
Yes, you can
@sonisingh4556
@sonisingh4556 3 жыл бұрын
@@VBAA2Z plz guide me
@VBAA2Z
@VBAA2Z 3 жыл бұрын
@@sonisingh4556 May I know what you're trying to achieve?
@sonisinghsony
@sonisinghsony 3 жыл бұрын
​@@VBAA2Z sir plz make one video on publisher and word automation like if we add any text or image(chart) in publisher its will automatically add in word document
@sachinbhoite7367
@sachinbhoite7367 3 жыл бұрын
Sir from where can I get this word file ? Of lease agreement
@RoyAliKhairan
@RoyAliKhairan 6 ай бұрын
Does it require the word document be opened?
@VBAA2Z
@VBAA2Z 6 ай бұрын
no it is not
@faldahendardi5571
@faldahendardi5571 3 жыл бұрын
Hi! I have a problem i cant find the reference for microsoft word in my visual basic app, could you please help me with this ?? Thank you
@VBAA2Z
@VBAA2Z 3 жыл бұрын
This might help : docs.microsoft.com/en-us/previous-versions/office/troubleshoot/office-developer/automate-word-create-file-using-visual-basic
@faldahendardi5571
@faldahendardi5571 3 жыл бұрын
@@VBAA2Z Thank you!
@Iqbalsharib4
@Iqbalsharib4 2 жыл бұрын
Can it be done through python if yes then how?
@VBAA2Z
@VBAA2Z 2 жыл бұрын
Use python-docx
@naveedmohammad9266
@naveedmohammad9266 2 жыл бұрын
my document is opening in read only format can u please help me
@VBAA2Z
@VBAA2Z 2 жыл бұрын
set read only parameter to false
@naveenkarthik3305
@naveenkarthik3305 Жыл бұрын
i am trying to understand, what is the value in this ?
@VBAA2Z
@VBAA2Z Жыл бұрын
which value/?
@anooop.143
@anooop.143 3 жыл бұрын
I have Problem In doc.ExportAsFixedFormat After imputing ".pdf" in last of That Line. The Flash Window message to Debug Is Not showing and Also Not Creating The File In The Export Output Folder... Reference - 10:30 to 11:10 From Vedio
@VBAA2Z
@VBAA2Z 3 жыл бұрын
try with static path and see if it works if good with below, it is possible your docpath variable is not returning qualified full path doc.ExportAsFixedFormat "C:\test.pdf"
@anooop.143
@anooop.143 3 жыл бұрын
@@VBAA2Z Now its Showing Compile Error Argument Not Optional By selecting (.Exportasfixedformat)
@VBAA2Z
@VBAA2Z 3 жыл бұрын
did you add wdExportFormatPDF? doc.ExportAsFixedFormat "C:\test.pdf",wdExportFormatPDF
@RahulSingh-we9so
@RahulSingh-we9so 3 жыл бұрын
Can we do VBA automation from word to word doc?
@VBAA2Z
@VBAA2Z 3 жыл бұрын
of course
@PABhoccungthaydeptrai
@PABhoccungthaydeptrai 4 жыл бұрын
May I get help on file .dotm without password but can not access the code? Tks ad
@VBAA2Z
@VBAA2Z 4 жыл бұрын
not sure I understand. trying to reset vba password?
@PABhoccungthaydeptrai
@PABhoccungthaydeptrai 4 жыл бұрын
tks
@TheAtinadjb
@TheAtinadjb Жыл бұрын
I am needing this so bad for work. Can you help me?
@VBAA2Z
@VBAA2Z Жыл бұрын
Please download from here: vbaa2z.blogspot.com/2020/12/you-can-support-vba-a2z-by-simply.html Feel free to post your here if any
@sultannurdaulet6592
@sultannurdaulet6592 Жыл бұрын
It gives me the error saying that my word document is protected and cannot be edited. Anyone who can help?
@VBAA2Z
@VBAA2Z Жыл бұрын
it must be password proected
@greenleaffoods3891
@greenleaffoods3891 3 жыл бұрын
Hi ! I'm having an issue with an error saying 'Compile error : Argument not optional'. This occurs for the doc.ExportAsFixedFormat code. Could you please help me with this ?? Thank you.
@VBAA2Z
@VBAA2Z 3 жыл бұрын
Hi, ensure you password all mandatory parameters.
@jaivashisth5866
@jaivashisth5866 Жыл бұрын
i have to work on word doc using coding, can anyone help in this.
@VBAA2Z
@VBAA2Z Жыл бұрын
try stackoverflow platform
@VBAA2Z
@VBAA2Z Жыл бұрын
any specific questions, feel free to post here too
@jaivashisth5866
@jaivashisth5866 Жыл бұрын
@@VBAA2Z yes.. i have to prepare a manual letter in word file, where i need to update the information for particular person, like name ,address, amount at a specific position. i want coding for this.
@sskfrey
@sskfrey 3 жыл бұрын
Could you do it on a Mac?
@VBAA2Z
@VBAA2Z 3 жыл бұрын
I currently don't own a mac, if you use mac please test it out and let me know
@VBAA2Z
@VBAA2Z 3 жыл бұрын
it should work
@ab_Chitrkatha
@ab_Chitrkatha Жыл бұрын
You cannot use bookmarks for data in column 😔😔
@VBAA2Z
@VBAA2Z Жыл бұрын
try this learn.microsoft.com/en-us/office/vba/api/word.bookmark.column
@rizkifernando1975
@rizkifernando1975 2 жыл бұрын
My Word didn't change at all
@VBAA2Z
@VBAA2Z 2 жыл бұрын
make sure the bookmarks are set up also debug line by line and see if it errors
@muthuperumalkonar4874
@muthuperumalkonar4874 3 жыл бұрын
Hi, I have 1000 pages in word document In that 1st page has two highlighted word in two different places And I want to highlight rest 999 page at exact the same location ... Can you please share the VBA code for that
@Jonesybabie
@Jonesybabie Жыл бұрын
The instruction is all over the place as though you forget maybe new people are trying to follow along. You already had windows opened and didn't explain where they came from and why 😑
@VBAA2Z
@VBAA2Z Жыл бұрын
Thanks for visit. Check here for basics on word app - support.microsoft.com/en-us/topic/7bcd85e6-2c3d-4c3c-a2a5-5ed8847eae73
@MAKIN54
@MAKIN54 Жыл бұрын
I didn’t liked your way of explaining because because you do all the work yourself. It looks as if you’re talking to yourself.
@VBAA2Z
@VBAA2Z Жыл бұрын
hope you find videos that helps.
Excel VBA Introduction Part 27.1 - Creating Word Documents
58:33
WiseOwlTutorials
Рет қаралды 175 М.
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
Каха и суп
00:39
К-Media
Рет қаралды 6 МЛН
Самый Молодой Актёр Без Оскара 😂
00:13
Глеб Рандалайнен
Рет қаралды 4,6 МЛН
Зачем он туда залез?
00:25
Vlad Samokatchik
Рет қаралды 3 МЛН
Power Automate: How to populate a Word Template 📃
24:10
Pragmatic Works
Рет қаралды 181 М.
How To Work With Paragraphs In Word VBA
16:28
Sigma Coding
Рет қаралды 13 М.
Macro to extract data from Word table to Excel | Excel VBA
12:49
Extreme Automation - Kamal Girdher
Рет қаралды 38 М.
Free Excel VBA Course #35 - Creating Word Reports Using VBA
25:23
Watch these 28 minutes if you want to become an Advanced VBA user...
29:01
Excel Macro Mastery
Рет қаралды 50 М.
Recording Powerful Macros in Microsoft Word
8:57
Technology for Teachers and Students
Рет қаралды 39 М.
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 2,1 МЛН
Я УКРАЛ ТЕЛЕФОН В МИЛАНЕ
9:18
Игорь Линк
Рет қаралды 127 М.
Как бесплатно замутить игровой ноутбук
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 183 М.
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 720 М.
АЙФОН 20 С ФУНКЦИЕЙ ВИДЕНИЯ ОГНЯ
0:59
КиноХост
Рет қаралды 1,1 МЛН
СТРАШНЫЙ ВИРУС НА МАКБУК
0:39
Кринжовый чел
Рет қаралды 1,4 МЛН