Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-16-2013, 10:35 AM
jonpackbosoxfan jonpackbosoxfan is offline Merge data from excel into word Windows 8 Merge data from excel into word Office 2010 64bit
Novice
Merge data from excel into word
 
Join Date: Sep 2013
Posts: 15
jonpackbosoxfan is on a distinguished road
Default Data Incorrect

okay i ran this on a saturday, and i noticed that the correct data is not necessaily pulling.



i have enclosed the actual spreadsheet that i created. With names fully on it.

when i ran it with all the name back in it, the dollar amounts were not correct for vendors. Case in point...Dick Blaske it showed a dollar amount of 6.00 when it should be 18.00

Thank you,

2013 Membership Attendance.xlsx
Reply With Quote
  #2  
Old 09-16-2013, 01:17 PM
BobBridges's Avatar
BobBridges BobBridges is offline Merge data from excel into word Windows 7 64bit Merge data from excel into word Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

Quote:
I ran this on a Saturday, and i noticed that the correct data is not necessarily pulling....When I ran it with all the names back in it, the dollar amounts were not correct for vendors. Case in point: Dick Blaske it showed a dollar amount of $6 when it should be $18.
The attached workbook is .xlsx, not .xlsm, so I can't tell what, if anything, might be wrong with the VBA code that created it. But for what it's worth, when I open this I see a bunch of 18s next to Dick Blaske's name; 18, not 6. Dunno whether I'm simply looking at the wrong row, or our Excels are acting differently, or what.
Reply With Quote
  #3  
Old 09-16-2013, 04:45 PM
jonpackbosoxfan jonpackbosoxfan is offline Merge data from excel into word Windows 8 Merge data from excel into word Office 2010 64bit
Novice
Merge data from excel into word
 
Join Date: Sep 2013
Posts: 15
jonpackbosoxfan is on a distinguished road
Default Problems

Okay now I have enclosed the one with the macros in it plus all the data. If you compate the data in the Saturday/Wednesday (which is correct) and the data that goes into the printout workbook, you will see that the correct dollar amounts is not being associated with the right people. Please help. Thank you.

2013 Membership Attendance With Macro.xls
Reply With Quote
  #4  
Old 09-16-2013, 07:13 PM
excelledsoftware excelledsoftware is offline Merge data from excel into word Windows 7 64bit Merge data from excel into word Office 2003
IT Specialist
 
Join Date: Jan 2012
Location: Utah
Posts: 455
excelledsoftware will become famous soon enough
Default

Quote:
Originally Posted by jonpackbosoxfan View Post
Okay now I have enclosed the one with the macros in it plus all the data. If you compate the data in the Saturday/Wednesday (which is correct) and the data that goes into the printout workbook, you will see that the correct dollar amounts is not being associated with the right people. Please help. Thank you.

Attachment 3626
I see the issue. It appears that y was set to 8 rather than 3. Not sure how that happened. I will fix this and repost.
Reply With Quote
  #5  
Old 09-16-2013, 07:30 PM
jonpackbosoxfan jonpackbosoxfan is offline Merge data from excel into word Windows 8 Merge data from excel into word Office 2010 64bit
Novice
Merge data from excel into word
 
Join Date: Sep 2013
Posts: 15
jonpackbosoxfan is on a distinguished road
Default

Thank you so much. This really does solve my problem very well.
Reply With Quote
  #6  
Old 09-16-2013, 07:32 PM
excelledsoftware excelledsoftware is offline Merge data from excel into word Windows 7 64bit Merge data from excel into word Office 2003
IT Specialist
 
Join Date: Jan 2012
Location: Utah
Posts: 455
excelledsoftware will become famous soon enough
Default

Quote:
Originally Posted by jonpackbosoxfan View Post
Okay now I have enclosed the one with the macros in it plus all the data. If you compate the data in the Saturday/Wednesday (which is correct) and the data that goes into the printout workbook, you will see that the correct dollar amounts is not being associated with the right people. Please help. Thank you.

Attachment 3626
Again my apologies. Believe it or not I have only been vba coding for a couple of months now. This code needed another variable and the 2 worksheets needed to be consistent (rows 1 and 2 on Wednesday were merged) I tested it with the 1st column of each and it appears to work now.

I have some experience with creating macros in access and it sounds like you will need to set up a paste append macro in access and set up a table worksheet in your workbook to do this.

Sorry again hope this works now.
Attached Files
File Type: xls 2013 Membership Attendance With Macro2.xls (147.5 KB, 15 views)
Reply With Quote
  #7  
Old 09-16-2013, 08:07 PM
jonpackbosoxfan jonpackbosoxfan is offline Merge data from excel into word Windows 8 Merge data from excel into word Office 2010 64bit
Novice
Merge data from excel into word
 
Join Date: Sep 2013
Posts: 15
jonpackbosoxfan is on a distinguished road
Default

Dude it works absolutely perfect. Thank you so much

Jonathan
Reply With Quote
  #8  
Old 09-16-2013, 08:12 PM
excelledsoftware excelledsoftware is offline Merge data from excel into word Windows 7 64bit Merge data from excel into word Office 2003
IT Specialist
 
Join Date: Jan 2012
Location: Utah
Posts: 455
excelledsoftware will become famous soon enough
Default

Quote:
Originally Posted by jonpackbosoxfan View Post
Dude it works absolutely perfect. Thank you so much

Jonathan
You are very welcome I appreciate the opportunity to work on it as it really helps me learn as well.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Merge data from excel into word data from Excel into Word table ragesz Word Tables 1 09-29-2013 06:14 PM
converting a word document to a data file for mail merge drsuis Mail Merge 4 02-21-2013 03:34 PM
Merge data from excel into word How can I revise Excel data source in merge? navysalad Mail Merge 6 01-07-2012 06:50 PM
Merge data from excel into word Wine List, Data Merge - Excel to Publisher - Or other suggestions? daym Publisher 2 05-01-2011 03:45 AM
How do I set up the fields in mail merge word 07 from my data base mbcrabber Mail Merge 4 06-06-2010 01:25 PM

Other Forums: Access Forums

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