Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-29-2014, 09:56 AM
sistemalan sistemalan is offline VBA to Find and Format Text string defined using Inputbox within selection Windows 7 64bit VBA to Find and Format Text string defined using Inputbox within selection Office 2013
Novice
VBA to Find and Format Text string defined using Inputbox within selection
 
Join Date: Sep 2014
Posts: 5
sistemalan is on a distinguished road
Question VBA to Find and Format Text string defined using Inputbox within selection

Hi all,



I am a new but keen convert to the wonderful world of VBA, and am hoping that some kind and knowledgeable person might be able to give me a quick bit of help.

To help with the timetabling of staff and volunteers for a children's after school club I need to create a macro which will function as follows:
  1. Before the macro is read I will manually select a chunk of text
  2. I run the macro. An Input box appears. I type someone's name into it and hit OK.
  3. The Macro searches within the highlighted selection and formats each occurence of the inputted name (red and strikethrough)

This will provide a quick way of fool-proofing and speeding up a task which I currently have to do manually very often, namely seeing who is off on a certain day and making sure they are marked as such on the timetable so that I can see what gaps need to be filled.

Huge gratitude for anyone who can point me in the right direction.

Many Thanks,

Alan
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA to Find and Format Text string defined using Inputbox within selection Find text, format part of text in italic d4okeefe Word VBA 18 06-30-2022 11:35 PM
Macro to find text in between two characters and then format selected text? qcom Word 5 02-19-2015 11:23 PM
VBA to Find and Format Text string defined using Inputbox within selection Way to search for a string in text file, pull out everything until another string? omahadivision Excel Programming 12 11-23-2013 12:10 PM
VBA to Find and Format Text string defined using Inputbox within selection Find and replace a string of text errtu Word 1 01-31-2013 02:09 PM
VBA to Find and Format Text string defined using Inputbox within selection Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM

Other Forums: Access Forums

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