Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #46  
Old 08-27-2018, 10:04 PM
macropod's Avatar
macropod macropod is offline Need macro to fill the values in msword based on the excel sheet info Windows 7 64bit Need macro to fill the values in msword based on the excel sheet info Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

See post #42!!!
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #47  
Old 08-28-2018, 09:10 PM
ganesang ganesang is offline Need macro to fill the values in msword based on the excel sheet info Windows XP Need macro to fill the values in msword based on the excel sheet info Office 2016
Competent Performer
Need macro to fill the values in msword based on the excel sheet info
 
Join Date: Jul 2018
Posts: 171
ganesang is on a distinguished road
Default

Hi Paul

I can understand your situation.

I am close to complete this task except this fix. I know this is also another new instance which i found inconsistency in this task.

If you provide the suggestion for this will helpful for me....

The only think we have to do "PV: RR" to insert after without deleting the exist texts in the cell to "PV: [point value]"

Thanks
ganesang
Reply With Quote
  #48  
Old 08-28-2018, 09:18 PM
macropod's Avatar
macropod macropod is offline Need macro to fill the values in msword based on the excel sheet info Windows 7 64bit Need macro to fill the values in msword based on the excel sheet info Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

As I said, you can do it via Find/Replace. You could even record a macro for that!

Nevertheless, insert:
Code:
  With .Range.Find
    .ClearFormatting
    .Replacement.ClearFormatting
    .MatchWildcards = True
    .Forward = True
    .Format = False
    .Wrap = wdFindContinue
    .Text = "(PV: )RR([0-9])"
    .Replacement.Text = "\1\2"
    .Execute wdReplaceAll
    .Text = "(PV:)RR([0-9])"
    .Replacement.Text = "\1 \2"
    .Execute wdReplaceAll
  End With
before the final 'End With' in the code you're already using.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #49  
Old 08-28-2018, 09:22 PM
ganesang ganesang is offline Need macro to fill the values in msword based on the excel sheet info Windows XP Need macro to fill the values in msword based on the excel sheet info Office 2016
Competent Performer
Need macro to fill the values in msword based on the excel sheet info
 
Join Date: Jul 2018
Posts: 171
ganesang is on a distinguished road
Default

Thanks Much Paul!!! for you big help on this
Reply With Quote
  #50  
Old 08-28-2018, 10:07 PM
ganesang ganesang is offline Need macro to fill the values in msword based on the excel sheet info Windows XP Need macro to fill the values in msword based on the excel sheet info Office 2016
Competent Performer
Need macro to fill the values in msword based on the excel sheet info
 
Join Date: Jul 2018
Posts: 171
ganesang is on a distinguished road
Default

Hi Paul

I just wanted to check that,

Is there any possible to call the other function called as like "Sub QID(ByVal Control As IRibbonControl)" in this macro?

I am trying to call the above macro but having the error.
Reply With Quote
  #51  
Old 08-29-2018, 12:53 AM
ganesang ganesang is offline Need macro to fill the values in msword based on the excel sheet info Windows XP Need macro to fill the values in msword based on the excel sheet info Office 2016
Competent Performer
Need macro to fill the values in msword based on the excel sheet info
 
Join Date: Jul 2018
Posts: 171
ganesang is on a distinguished road
Default

Thanks Paul

I got the answer on this question!!!!

thanks much again for your big help
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need macro to fill data from different sheets based on selected item from drop down skorasika Excel Programming 1 03-13-2015 11:25 AM
Newbie to excel for starters, needing to transfer info from sheet2 to universe sheet. rogcar75 Excel 0 08-12-2014 07:21 AM
Color-fill a range of cells, based on text in a different sheet. Possible? unittwentyfive Excel 2 06-01-2014 06:48 AM
Need macro to fill the values in msword based on the excel sheet info link conditional info in word based on excel list stijnvanhoof Mail Merge 1 11-13-2012 01:55 PM
Need macro to fill the values in msword based on the excel sheet info Open Word w Excel & fill Word textboxes w info from Excel fields runtime error 4248 Joe Patrick Word VBA 2 01-30-2012 07:23 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:33 AM.


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