Pyro's Excel Goodies

Reply
 
LinkBack Thread Tools
  #61 (permalink)  
Old 07-22-2008
alexander's Avatar
Resident USSRian
Hypography Staff Member
Administrator
Gallery Curator
Dev Team Member
Re: Pyro's Excel Goodies

Pyro, the problem is that the macro does not seem to recognize the value, whether i cast it to a bool, or anything else, or not even cast it at all, it constantly has a type mismatch, and that, honestly, blows, not not got me a value that was easily checked and understood by the macro, and yeah simple

I thought the macro was rather brilliant, not all that many people use the xor logic never mind using xor logic on the value of the cell, to assign row properties...

I could have used NOT(cell) and reversed the logic, but it seemed more confusing...
__________________

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
Reply With Quote
  #62 (permalink)  
Old 07-22-2008
Pyrotex's Avatar
Slaying Bad Memes
Hypography Staff Member
Moderator
Editor
13 Days in Hell Champion!
Join Date: Nov 2005
Location: Houston, Texas
Posts: 3,820
Blog Entries: 7
Pyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond repute
Send a message via MSN to Pyrotex
Re: Pyro's Excel Goodies

Quote:
Originally Posted by alexander View Post
ok ...Problem i ran into was that the range function was returning a value that i couldn't even cast, it was so insanely weird, probalby due to what has to happen on the back end of the function or formatting or something....
Hmmmm, he said.
Whatever column you're checking on, make sure the "empty" cells don't have spaces in them. Like, " ", you know. A check on whether or not a cell is 0/1 or F/T can fail if the cell contains text.
__________________
Hypography Forums Moderator
-- - - - - -
What concerns me is not the way things are, but rather the way people think things are.
Epictetus, Greek Philosopher
The map is NOT the territory.
Korzybski, Polish-American Philosopher
Reply With Quote
  #64 (permalink)  
Old 08-29-2008
TheBigDog's Avatar
Doing the Impossible
Hypography Staff Member
Moderator
Gallery Curator
2 Ball Pool Champion!Tournaments Won: 1

Join Date: Aug 2005
Location: Madison, OH (when not in fantasy land)
Posts: 3,437
Blog Entries: 22
TheBigDog has a brilliant futureTheBigDog has a brilliant futureTheBigDog has a brilliant futureTheBigDog has a brilliant futureTheBigDog has a brilliant futureTheBigDog has a brilliant futureTheBigDog has a brilliant futureTheBigDog has a brilliant futureTheBigDog has a brilliant futureTheBigDog has a brilliant future
Send a message via MSN to TheBigDog
Re: Pyro's Excel Goodies

O Great Sage of Excel!! I come to the humbly to partake from your vast grid of wisdom.

I have a spreadsheet that I have distributed as an analysis tool. It essentially is two pieces. 1) An Access DB used to store data for analysis on the users local computer. 2) An Excel document that does the analysis of the data. When the user opens the sheet they use a UserForm to update their local Access database from a centralized SQL server. That is not the problem. Once the data is updated in the Access database I have the pivot tables in the Excel file all update. That is not the problem. The problem is coming as I try to add some sophistication to the update procedure.

Because the data set is getting larger I am giving the users the ability to filter what data is queried from Access into Excel. It is doing an analysis of all the product that passes through our manufacturing process. I trap the major events as "Milestones". I allow the user to select which Milestones they want to include in the data loaded to the pivot tables. I have the code working that creates the SQL query from their selections, but when I try and update the ThisWorkbook.PivotCaches(1).CommandText = sql I get an error 1004. I looked this up on the internet and found the problem is that I have several pivot tables all referencing this pivot table as the source - I do this to best utilize memory and to make it so I only have to do one refresh to update all the pivot tables.

My question is this... Do you know of a way I can update the CommandText property of the pivot caches object? I found some code on the net that is supposed to do it by updating the .Connection to change the .QueryType from ODBC to OLE and then back again after making the update, but it is not working. My next route is to decouple all of the pivot tables, update the .CommandText on the primary table, and then link them all to it again. But I figured I would check with you before I ran down that rabbit hole too far.

I hope you can help with this one! It has be pretty flustered.

Thanks!

Bill
__________________
aka TheBigDog - Hypography Full Freaking Moderator
Become a Hypography sponsor!
The truth is incontravertible; malice may attack it, ignorance may deride it, but in the end there it is. - Winston Churchill

TheBigDog's recommended reading: The Science of Success - Charles G. Koch

A neutron goes into a bar and asks the bartender, "How much for a beer?"
The bartender replies, "For you, no charge."
Reply With Quote
  #65 (permalink)  
Old 08-29-2008
Pyrotex's Avatar
Slaying Bad Memes
Hypography Staff Member
Moderator
Editor
13 Days in Hell Champion!
Join Date: Nov 2005
Location: Houston, Texas
Posts: 3,820
Blog Entries: 7
Pyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond repute
Send a message via MSN to Pyrotex
Re: Pyro's Excel Goodies

Quote:
Originally Posted by TheBigDog View Post
...I have a spreadsheet ...Access database from a centralized SQL server ...ThisWorkbook.PivotCaches(1).CommandText = sql ...error 1004 ...one refresh to update all the pivot tables ...update the CommandText property of the pivot caches object? ...change the .QueryType from ODBC to OLE ...decouple all of the pivot tables...rabbit hole ...flustered...


Uh... maybe if you SQL Pivot the decouple Command refresh between Access and the ODBC rabbit hole ...

I am sorry old friend, but I cannot even begin to start to commence to solve your problem. I have never tried to cross-couple Excel and Access.
Sorry again.
__________________
Hypography Forums Moderator
-- - - - - -
What concerns me is not the way things are, but rather the way people think things are.
Epictetus, Greek Philosopher
The map is NOT the territory.
Korzybski, Polish-American Philosopher
Reply With Quote
Reply

Bookmarks

Tags
excel, formulas, macros, spreadsheet, spreadsheets, vba


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 compatibility freeztar Suggestions and Wish List 11 01-29-2008
How to convert Ms. Excel spreadsheet to MS. SQL? cannonbow88 Computer Science 2 09-27-2006
How to convert MS Excel format to My SQL? Chloe Computer Science 5 08-11-2005

» Current Poll
Do you read popular science books?
Yes, a few each year - 60.00%
6 Votes
Yes, but very rarely - 10.00%
1 Vote
Yes, most of the time - 20.00%
2 Votes
No - 10.00%
1 Vote
Total Votes: 10
You may not vote on this poll.

All times are GMT -8. The time now is 04:01 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Copyright © 2000-2008 Hypography
Part of the Hypography - Science for Everyone Network