Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-09-2017, 03:06 AM
gmaxey gmaxey is offline Excel to Word data import based on UserForm entry Windows 7 32bit Excel to Word data import based on UserForm entry Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,598
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Replace:


strResult = GetValue("The value to find", 6)

With
strResult = GetValue(YourUserForm.TextBox1.Text, 6)

or however your userform and .TextBox1 might be defined.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #2  
Old 05-09-2017, 04:57 PM
jhancock1994 jhancock1994 is offline Excel to Word data import based on UserForm entry Windows 7 64bit Excel to Word data import based on UserForm entry Office 2013
Novice
Excel to Word data import based on UserForm entry
 
Join Date: May 2017
Posts: 7
jhancock1994 is on a distinguished road
Default

Cheers Greg.

Unfortunately when run most of the time now it gives an Invalid use of Null (Error 94), relating to the line:

strID = Arr(0, iCols)

The search value and Excel workbook meet the requirements so I'm not exactly sure where this is coming from.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Import from multiple word files into an Excel tale asmanokhchi Word 1 04-21-2015 06:24 AM
need VBA to Transpose the Data from excel to word based on given criteria(status) winmaxservices2 Excel Programming 1 12-19-2014 10:21 PM
Excel to Word data import based on UserForm entry Import data from Excel into Word sb003848 Word 1 11-04-2014 06:30 PM
Import excel data in to SQL Server DavidBrown Excel 0 08-08-2011 04:49 AM
Import Pics and Excel Data into PP? jawillyams PowerPoint 0 03-13-2011 01:03 PM

Other Forums: Access Forums

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