Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-16-2015, 06:36 PM
Guessed's Avatar
Guessed Guessed is offline help creating macro in word Windows 7 32bit help creating macro in word Office 2010 32bit
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,185
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

As macropod suggests, this would be a lot easier to do as a mail merge.

FWIW, your code has obvious errors which cause compilation errors but I can't test to iron out any other issues related to the things we can't see there.

DefaultTableBehaivor is not spelt correctly and needs to say DefaultTableBehavior
strPassword -InputBox("Password Please?", "Lock Forms Password") should have an equals sign instead of the minus

Add Dim strEmps As String, strPath As String to the start of the Sub Connect macro



Public connEmp As ADODB.Connection - this line fails to compile because you haven't added a reference to one of the Microsoft ActiveX Data Object x.x Library
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #2  
Old 02-17-2015, 06:38 PM
cc.caroline15 cc.caroline15 is offline help creating macro in word Windows 8 help creating macro in word Office 2013
Novice
help creating macro in word
 
Join Date: Jan 2015
Posts: 9
cc.caroline15 is on a distinguished road
Default

Hi macropod I'm required to do it the hard way with code
Guessed I made the changes you suggested the code doesn't give me that error any more but now I get the following error:
Run Time error 91 Do you have anymore advice?? I have attach the word document with the changes and the access database as well. Thank you
Reply With Quote
  #3  
Old 02-17-2015, 06:46 PM
cc.caroline15 cc.caroline15 is offline help creating macro in word Windows 8 help creating macro in word Office 2013
Novice
help creating macro in word
 
Join Date: Jan 2015
Posts: 9
cc.caroline15 is on a distinguished road
Default

here are the files
Attached Files
File Type: zip 243CCA04.zip (47.8 KB, 10 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
help creating macro in word help creating macro tingker Word VBA 4 01-08-2015 08:58 PM
help creating macro in word Need Help Creating Macro rsrasc Word VBA 1 10-22-2014 03:09 PM
help creating macro in word Need Help Creating Macro rsrasc Word VBA 4 03-28-2014 01:31 PM
Creating a MACRO Nikb3522 Word VBA 0 10-21-2010 05:55 PM
creating macro steveb Word VBA 0 08-14-2010 01:29 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:11 AM.


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