Member Avatar

I was wondering if anyone could help me out with a problem I've had for a few days. This is a code snippet of a program I'm writing to move and delete email attachments from one or more selected emails. Everything works great except the program won't edit the body of the emails as written. When I interrogated in the editor, I found that the MailItems are empty upon initialization and after passed to the sub routine. Any idea why an email I know has text comes up with no body or HTMLBody in Outlook VBA? Thanks in advance. Public …

Member Avatar
+0 forum 1
Member Avatar

Hi Everyone. It's been a while since I was on here last, but ran into an interesting problem with a nested for loop that I cannot solve. Hoping someone here will know the answer. I placed breakpoints in my code at the For x=1 to 10 line and after to see where run-time is ending. For some reason VBA is not executing the loop at all. Does anyone know what I'm missing? Thanks in advance. sub help() Dim x As Integer Dim y As Integer Dim lastcell As Long Dim ws As Worksheet Dim wscurr As Worksheet Dim gcounter As …

Member Avatar
+0 forum 6
Member Avatar

Can someone tell me why it might be that my Title 1 and Title 2 wrap in the table? This is a snippet of 130 titles, some are long, some are short. I want the title block to be a fixed length and nicely formatted. Any suggestions? Thanks in advance. [CODE=html]<html> <head> <title>PROJECT LISTING OF THINGS</title></head> <body topmargin="0" leftmargin="0" background="../images/backgroundMC.gif" vlink="#0000FF"alink="#0000FF"> <table border="0" width="100%"> <tr> <td width="100%"><p align="center"><font face="Arial" color="#000080"><big><big><strong>PROJECT LISTING</strong></big></big></font></td> <tr><td width="100%"><p align="center"><font face="Arial" color="#000080"><strong>for</strong></font></td></tr> <tr> <td width="100%"><p align="center"><font face="Arial" size="7" color="#000080"><strong>AFRICA</strong></font></td></table> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="100%"><p align="center"><strong><small><font face="Arial">For a copy of any documents listed below, …

Member Avatar
+0 forum 2
Member Avatar

Hey Everyone, I have developed a program to help me geocode approximately 100,000 addresses from Google. After doing some i/o to bring all the names into a vector in C++, I have now 100,000 distinct addresses that I must pull up, retrieve the code from google's server via csv output, and then put the csv information into a string (it's very short because it's just lat/long information and an error code). Is there any way to pull up each of these hyperlinks? I am good with non-network programming, but am unfamiliar with how to do this in C++. VBA via …

Member Avatar
+0 forum 3
Member Avatar

I have commented the problem into the code below. See the Store2 vector in the Write Data function. I get error 0xC0000005: Access Violation with no warnings. Any help figuring out why would be appreciated. [ICODE] #include <iostream> #include <fstream> #include <string> #include <sstream> #include <vector> #include <stdlib.h> using namespace std ; struct Weather { int winddr; double windsp; double ETTsea; double Hsea; double VMDsea; double ETTswell; double Hswell; double VMDswell; double Hs; }; struct Found { double height; double degrees; double prob; double count; }; struct Found2 { double height; double VMDsea; double VMDswell; int yes; }; //----------------------------------------------------------------------------------------------------------------------------- void …

Member Avatar
+0 forum 1
Member Avatar

Is it legal to have a vector of struct to be returned as the output of a user-defined function? I can't seem to get it to work? Thanks.

Member Avatar
+0 forum 1
Member Avatar

As you can see below, I am working on making a macro that compares the time in one column on a page to another on a page. However, in the if statement where I'm trying to round the numbers with time values in it (because I need the numbers to match exactly in order for the if statement to work), I am getting a type mismatch error. Does anyone know a smarter way to code if one cell = another cell with time in it? I would use Vlookup but it is having trouble because the time values do not …

Member Avatar
+0 forum 2
Member Avatar

Thanks for your help earlier with the file input everyone...I have another question to ask of you. I am trying to check two vectors against each other to see if the "timeanddate" match up. Then try to output the ones that do match. I am getting errors from the if statement down, as the inputting works flawlessly. Any help would be great! Thanks in advance. [CODE] #include <iostream> #include <fstream> #include <string> #include <sstream> #include <vector> using namespace std ; struct Weather { string timeanddate; double wind; double windmax; }; struct Weather2 { string timeanddate; string excel; string date; string …

Member Avatar
+0 forum 6
Member Avatar

Anyhelp with the ostringstream and datastream line would be appreciated. Can't seem to get the data to actually write to the text file...No data in results.txt, but the file is created by the program when I run it... [CODE] ofstream DataFile3("results.txt"); cout<<"Writing...Please wait...."<<endl; for (a=0; a<Search.size(); a++) { cout<<Search[a].date<<" "<<Search[a].time<<" "<<Search[a].wind_obs<<" "<<Search[a].wind_sensor<<endl; ostringstream Outgoing(DataStream3); Outgoing << Search[a].date << Search[a].time << Search[a].wind_obs <<Search[a].wind_sensor<<endl; [/CODE]

Member Avatar
+0 forum 6
Member Avatar

Need a recommendation on how to proceed with this task...I am starting new in C++ (after taking it in high school 11 years ago it has been forgotten and has changed alot). I have put the code I have below and some sample lines of data...any recommendations on how to load my array of weather observations would be appreciated. You will find that data is separated by a space and line breaks between observations. I only need the first several lines to remain individual and the rest of the observation I want to store as a string 'otherstuff'...is this even …

Member Avatar
+0 forum 14

The End.