|
Hi guys, Im currently reading and parsing an HTTPrequest and inserting it into a worksheet via the following the code. code:
Here is the output I get (which is fine) but I would like it to not go through a loop populating. Here is what im trying and failing at. It just spits it all into A3. Am I storing it wrong? How the hell do I get it to just spit it out over the range?! code:
|
# ¿ Aug 2, 2011 07:30 |
|
|
# ¿ May 14, 2024 18:34 |
|
gwar3k1 posted:ActiveSheet.Paste should be sufficient with you selecting Sheet11.Cells(3,1) before hand. I've never had to use Destination:=... before. Its possibly that. Activesheet.paste just puts it all into A3 however vbnewline enables it to actually go down the right number of rows just all the row data ends up in the one column ( it won't paste as recognizing the vbtab should be forcing it to spam the rows like in my output for the for loop. Unfortunately, it is 1 billion too slow to populate the entire thing using the for loop as the populator even with screen updating off ( this has to go through thousands of records ). Before you tell me this shouldnt be done in excel I know but I do what I'm contracted to Desperately need help with this one
|
# ¿ Aug 2, 2011 11:49 |
|
gwar3k1 posted:How about this: Hmm I'll see how that affects performance. Wish I could just paste tab delimited. I'm sure it's possible as when I'm debugging, the string is saving it with the tabs.
|
# ¿ Aug 2, 2011 22:06 |
|
gwar3k1 posted:Microsoft is inclined to agree. Try vbCr instead of vbNewline. Maybe even trim the last vbTab before each newline? OK apparently my code was alright after all. Now I have an even stupider problem. It works perfectly on windows 7 with office 2007 (all references the same) but doesnt paste properly in windows vista with office 2007 (references still the same. I hate VBA so much. EDIT: Just in case anyone was wondering, ActiveX controls dont work with Office for Mac 2011. Update: Apparently opening a workbook with macros on office for mac then saving it on the mac makes it hosed for windows office. Havent found out exactly why yet. Baxta fucked around with this message at 07:16 on Aug 5, 2011 |
# ¿ Aug 3, 2011 00:13 |
|
gwar3k1 posted:Have you moved from 2003 (or the Mac equivalent) to 2011? Do you know that .xlsx files don't allow macros where as .xlsm do? Sorry if you already know this, but its the first thing that I'd check. Same goes for templates: .xltm allows macro use and isn't the default. Yeah its not the issue with the macros. Something in office for mac 2011 does something to the library references in the xlsm. Even if you just open and save on a mac, it screws up the xlsm. I solved the problem by running parallels.
|
# ¿ Aug 10, 2011 01:44 |