Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by BluByU

  1. BluByU

    Sort and ADO recordset in Excel using the SORT property

    No, it's not theory. I coded all of this VBA code by hand and did not record a macro. I am using a explicity referenced range object. Anyway, the problem is resolved, thanks.
  2. BluByU

    Sort and ADO recordset in Excel using the SORT property

    You were right Skip. I didn't have a range selected when I performed the SORT on the data column. Once I tried that, I got another error which said that the column I was sorting on was "not in range" (when it was). I then changed the format on the SORT column to an explicit date format and...
  3. BluByU

    Sort and ADO recordset in Excel using the SORT property

    Thanks for your response, but is there a way that I can do this from inside ADO? If I copy the recordset to a sheet and then sort by the desired column, that column is sorted, but not the rows on the spreadsheet associated with them. So, I don't think whis will work, unless I am missing...
  4. BluByU

    Sort and ADO recordset in Excel using the SORT property

    I am having a problem with VB script in an Excel spreadsheet that is calling a stored procedure. The stored procedure I am calling is used by other spreadsheets and has a sorting method that I want to override. I don't want to change the stored procedure, but just change the sort order in the...
  5. BluByU

    Need advice on a shape dropdown list

    Hello. I have a spreadsheet that has a "stoplight" display which is essentially 3 small circles colored red, yellow and green. Each circle is in its own cell. Is it possible to put these shapes into a drop down list so that when the user selects one of them, a predetermined cell is filled...
  6. BluByU

    How do I get the column header from VBA?

    I hope this isn't a stupid question, but here goes. If I know the index number of a column, how do I retrieve in VBA the alphabetic column header name? Example: Column 47 of the spreadsheet is "AU". The formulas I need to modify on a worksheet use the format: "=SUM('Master sheet v2.0'!AR14)"...
  7. BluByU

    Problem with PublishObject in Excel VBA

    Well, I just got it to work. here is what I had to do. The VBA code was triggered by a command button click on the spreadsheet. I read somewhere else that the command button couldn't have focus in order for the "button click" event to work properly, so I changed the property on the button...
  8. BluByU

    Problem with PublishObject in Excel VBA

    Can someone please help? I really need to get this working. Thanks in advance.
  9. BluByU

    Problem with PublishObject in Excel VBA

    The full error message is: Run-time error '1004' Method 'Publish' of object 'PublishObject' failed.
  10. BluByU

    Problem with PublishObject in Excel VBA

    Thanks for the response. However, the "objPublish.Publish False" statement still returns a "1004" run time error. I have entered the code just as in your example. Any other suggestions on what might be going wrong?
  11. BluByU

    Problem with PublishObject in Excel VBA

    The code below returns a run-time error 1004 on the Publish method. I don't know what VB is complaining about. Thanks in advance for your help. Set objRange = ActiveSheet.Range("A1:Q33") objcoord = objRange.Address Set objPublish = ActiveWorkbook.PublishObjects.Add (xlSourceRange...
  12. BluByU

    Use of "Republish: Sheet" feature in "SaveAs" function...

    Is there any way in VBA Excel 2002 to use the "Republish: Sheet" feature when saving the active worksheet as an "html" formatted file? The online help for the "SaveAs" doesn't show this feature as available. Any suggestions? Thanks in advance.
  13. BluByU

    Preserving cell formulas from user input

    I have a user who has created a spreadsheet used for data entry. He has placed some "VLookup" formulas in several of the input cells to create drop down picklists. However, when a user enters and saves a new value that is not in the picklist, the "VLookup" formula is lost and overwritten by...
  14. BluByU

    Simply setting the column width in Excel with VBA

    Thanks a lot! That fixed it. I guess the "row" numbers must have been confusing Excel. This is a great forum!
  15. BluByU

    Simply setting the column width in Excel with VBA

    I've done a forum search, but none of the topics seems to have a solution that works. I simply need to set the ".columnwidth" property of a spreadsheet to a certain width. I tried "autofit" (which is preferable to me)that also didn't seem to work. Here is what I am doing in VBA...

Part and Inventory Search

Back
Top