Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-10-2014, 05:51 AM
IanMC IanMC is offline Delete Rows in Protected Table with Form Fields Windows Vista Delete Rows in Protected Table with Form Fields Office 2013
Novice
 
Join Date: Sep 2014
Posts: 6
IanMC is on a distinguished road
Default

Hi Paul,

Thank you for the additional guidance re: adding values - will amend accordingly.



I'm struggling to understand the multiple tables piece - how will the code know which tables it applies to?
Reply With Quote
  #2  
Old 09-10-2014, 08:56 AM
macropod's Avatar
macropod macropod is online now Delete Rows in Protected Table with Form Fields Windows 7 64bit Delete Rows in Protected Table with Form Fields Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by IanMC View Post
I'm struggling to understand the multiple tables piece - how will the code know which tables it applies to?
It 'knows' that from the use of 'Selection.Tables(1)'. Since the formfield the macro is attached to is a Selection, that tells Word to use the first table in the selected range, rather than the first table in the document.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 09-11-2014, 12:52 AM
IanMC IanMC is offline Delete Rows in Protected Table with Form Fields Windows Vista Delete Rows in Protected Table with Form Fields Office 2013
Novice
 
Join Date: Sep 2014
Posts: 6
IanMC is on a distinguished road
Default

Hello,

Apologies for the simple/ daft questions; I'm new to this so it's all a very steep learning curve!

I've tried altering the code so that the same happens to table 18 (with the formfield in the 3rd column), I changed the table reference to correspond, but no deletion occurs. There is a Reference field in column 2, but as this is not a formfield I'm thinking that this won't be impacting on it. Is there a bit of the code which needs updating to reflect that it's the 3rd column?
Reply With Quote
Reply

Tags
delete row, form fields, protected form



Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete Rows in Protected Table with Form Fields Text Form Fields - Filling the table cell simville02 Word Tables 1 01-31-2013 11:12 PM
Using macro to add variable number of rows to a protected word table Julia Word Tables 1 01-09-2013 06:04 AM
Delete Rows in Protected Table with Form Fields Delete all rows but the last. elky1967 Word VBA 14 09-21-2012 05:27 AM
Adding table lines to protected form razberri Word Tables 2 10-27-2010 05:58 PM
Editing Password protected form fields in Word 2007 tamilan Word 2 02-16-2010 09:45 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:48 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