Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 06-30-2021, 07:51 AM
ananas1171 ananas1171 is offline How do I on MS Word VBA add and remove rows in the tables using command button macros? Windows 10 How do I on MS Word VBA add and remove rows in the tables using command button macros? Office 2016
Novice
How do I on MS Word VBA add and remove rows in the tables using command button macros?
 
Join Date: Jun 2021
Posts: 5
ananas1171 is on a distinguished road
Default

Sorry for spamming.


Alright so....


1) if I use filling in forms restriction then I need to add content control in every cell of the table like in the image I attached because if I lock the "filling in forms" then I will be unable to make changes to the cells. I tried editing the code using your code as the bases but everything got even worse. I saw that your code had content control (1) so my guess was that if I add 3 more text boxes then I should have CC 2,3 and 4?


2) In my response above, I was unable to solve the run-time error "13", type mismatch. I tried changing the commands but that also ended up crashing the code completely.


3) I found a way to use your original code and when I do lock the form I just select restrictions for "comments" and I select the areas that I want to edit. It is not ideal mainly because when I add the row it takes the previous filled in text and pastes it into new row and I want column 1,2,3 to be blank and only copy the drop options in column 4. It is not idea but it is better than not having anything at all for now.
Attached Images
File Type: png Macro editing.PNG (34.0 KB, 14 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove visible command button when attaching in outlook mfiltvedt84 Outlook 11 10-02-2018 04:33 PM
Show table list by using chek box command and save document on sharepoint by using command button Zhibek Word VBA 3 08-16-2018 06:19 PM
How do I on MS Word VBA add and remove rows in the tables using command button macros? Print only specified pages of word by 1 click of command button using vba Zhibek Word VBA 9 08-12-2018 11:44 PM
Word 2013 ActiveX Command Button Failure irallfml@gmail.com Word VBA 1 05-23-2014 04:19 PM
How do I on MS Word VBA add and remove rows in the tables using command button macros? Word VBA: How to create a command button and trigger a function? tinfanide Word VBA 2 12-02-2011 05:51 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:29 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft