Search:

Type: Posts; User: sweet_dreams

Page 1 of 5 1 2 3 4

Search: Search took 0.06 seconds.

  1. Re: Count Number of Characters in a string up to a Delimeter

    Hi,

    I'll give you fishing pole not a fish: try to play with InStr and Mid functions.

    Regards,
    Sebastian
  2. Re: Check for Existance of data on Userform Page

    Hi,

    You can use below code to validate all combobox controls on current page:



    Dim nPage As Integer
    Dim oControl As Control

    ' check current page
  3. Re: when enter a date into a table, i am getting as time format in MS access

    Hi,

    How are you trying to insert date into table?
    Are you using VBA? If yes do you put "#" signs around date?
    What data type is field that you are trying to insert date to?

    More information...
  4. Replies
    2
    Views
    457

    Re: Variable as button name

    Hi,

    You can access ActiveX controls on sheet using OLEObjects collection:


    Dim strButtonName As String
    strButtonName = "cmdButton2"
    ...
  5. Replies
    4
    Views
    1,026

    Re: Timing VB Code

    Hi,

    To measure time in seconds (and parts of seconds) you can use Timer function. This function returns seconds from Midnight.



    Sub TestTime()
    Dim sStartTime As Single
    Dim sEndTime...
  6. Re: Word 2007 ~ how to programically create a new hard drive folder by button?

    Hi,

    You can use below procedure to create folder. Before creating folder it checks if it exists.



    Sub CreateFolder(strFolder As String)

    Dim objFSO As Object
    Dim strPath As String
  7. Re: Auto Open/Refresh Pivots/Save/Close Excel files using VB

    Code that I provided consists of 4 procedures:
    - ListXlsx - iterates through provided as an argument direcory and its subfolders and it lists in column "A" in active worksheet file paths to excel...
  8. Re: Auto Open/Refresh Pivots/Save/Close Excel files using VB

    Hi,

    Create in new excel file new module and paste below code. Than just execute RefreshPivots procedure. Below code lists all xlsx files from folder and subfolders in current worksheet. Than it...
  9. Replies
    8
    Views
    784

    Re: Declaring a Type structure

    Hi,
    Can You show whole code that is executed in form?
    It looks like you are trying to assign value of wrong datatype to one of element.
    Regards,
    Sebastian
  10. Replies
    8
    Views
    1,567

    Re: Regarding user forms in excel VBA

    Hi,
    Check below code. Add it to click event of command button



    Private Sub CommandButton1_Click()

    Dim oControl As Control

    For Each oControl In Me.Controls ' Loop through all controls on...
  11. Re: [Excel] Question about the function iQuery

    Hi,

    Your iQuery function looks like custom function. Go to Visual Basic Editor (ALT+F11) in your old spreadsheet. Then check in all objects visible in project explorer (window should be located at...
  12. Re: Checking the existense of a value in two tables

    Hi,

    It depends. If tables are related and you only want to retrieve one record but depending on whether value exists in both tables using join seems to be solution.

    If you want to retrieve two...
  13. Replies
    4
    Views
    775

    Re: MySQL SELECT Statement Question

    Hi,

    To eliminate duplicate rows You should use DISTINCT clause:



    SELECT DISTINCT UserId, Folder
    FROM File
  14. Access/Excel apps for non-profit organisations

    Hi All,

    I am looking for opportunity to work for non-profit organisation.
    I have 2 years, hands-on experience in creating applications based on MS Excel and MS Access.
    Just send me PM with Your...
  15. Replies
    5
    Views
    673

    Re: [2005] Basic Decimal Quetion

    try this:

    Dim number As Integer
    number = 2
    lblnumber.text = (number.ToString("0.00"))
  16. Replies
    3
    Views
    613

    Re: [2005] Always on top

    I don't know if I understood what you mean. But you can place one lable on another and change their Visibile property: True - to show label, False - hide label.

    For example:

    lbl1.visible=true ...
  17. Re: Data passing between mdi child forms

    Hi,

    I suggest you should read this articles:
    http://www.devcity.net/Articles/94/1/multipleforms.aspx
    http://www.devcity.net/Articles/100/multipleforms2.aspx...
  18. Re: [2005] Child Window in MDI Container

    s2002h69,

    If you want to place some controls on MDI container you can use Panel control. On this panel you can place other controls. I think this will be much better that using option box.

    As...
  19. Replies
    4
    Views
    833

    Re: [2005] delete selected row

    Hi,

    If you want to remove all selected rows:

    For Each row As DataGridViewRow In Me.DataGridView1.SelectedRows
    Me.DataGridView1.Rows.Remove(row)
    Next

    regards,
    sweet_dreams
  20. [Word] Paste text to currently open document

    Hi all,

    I have such a problem: I wrote sub to copy text form one doc to
    currently open document. I attached this sub to button I would like it
    to insert text form another doc in the selection...
  21. Replies
    7
    Views
    931

    Re: Easy question?

    Hi,

    If I understood you well, this should do:

    Private Sub ShowMessage(ByVal sender As Object, ByVal e As System.EventArgs) _
    Handles RadioButton1.CheckedChanged,...
  22. Replies
    4
    Views
    637

    Re: [2005] using table

    You can read about this control here:
    http://msdn2.microsoft.com/en-us/library/3a1tbfwd.aspx
    http://www.codeproject.com/Purgatory/LayoutPanels_VS2005.asp
    Hope this helps.

    Regards,
    sweet_dreams
  23. Replies
    4
    Views
    637

    Re: [2005] using table

    What is it table tool??? Can you give proper name of the control you use???
  24. Re: [2005] Combobox selection changes source of second combobox

    Hi,

    If I understood you well this should do:

    Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
    ...
  25. Re: [2005] Validating DataGridView's cell

    Thanks jmcilhinney for your reply. But I have another problem: how can I avoid validating cell it isn't containing any value. I was trying to use such a code:

    Private Sub...
  26. [2005] Validating DataGridView's cell

    Hi,

    How can I valide value in DataGridViews cell? I was trying to do it like that:

    Private Sub DataGridView1_CellValidating(ByVal sender As Object, ByVal e As...
  27. Replies
    13
    Views
    1,101

    Re: Reload or Refresh Form

    Hi,

    In your case code should look for example like this:


    Dim text As String = ""

    Select Case Me.ComboBox1.Text
    Case "yellow"
    text = "yellow"
  28. [2005] unable to navigate through rows on DataGridView

    Hi all,

    Is it possible to make user unable to navigate through rows on DataGridView control, so that user can not go to next or previous row. Regardless of how user is trying: using mouse or...
  29. [2005] Word Automation Error: "FormattedText is not a by reference property"

    Hi all,

    I wanted to copy content of one .doc file into another including text formatting. I am using late binding:


    Dim oApp As Object
    Dim oDoc As Object
    Dim oRange...
  30. [2005]Automating MS Word Using VB.NET question

    Hi all,

    I need some suggestions about automating MS Word using VB.NET. I searched this forum to find some information about programming word with Vb. I found many interesting things but still I...
  31. [RESOLVED] [2005] RichTextBox - problem with formatting text

    Hi all,

    I have such a problem with RichTextBox control:
    Imagine I have a text like that: I have some text. I would like to select text press the button and make it written in Italic: I have some...
  32. Replies
    1
    Views
    500

    [2005] Scrollbars on ListView

    Hi all,

    How can I make visible vertical scrollbar on ListView control?

    Regardsm
    sweet_dreams
  33. Re: [2005] Programmatically select row on listview control

    Thank you a lot Kleinma it works perfect
  34. [2005] [Resolved]Programmatically select row on listview control

    Hi all,

    Is it possible to programmatically select row of specified index on ListView control? Any code will be appreciated.

    Regards,
    sweet_dreams
  35. Replies
    2
    Views
    604

    Re: [2005] DataGridvView problem

    Ok. This is full code I use to add the data

    Dim ds As New DataSet
    Dim number As Integer

    'here comes data from xml file
    ds.ReadXml(Application.StartupPath & "\2.xml")...
  36. Replies
    2
    Views
    604

    [2005] DataGridvView problem

    Hi all,

    I have such a problem with datagridview control:
    I have 3 forms: frmParent, frmChild & frmChild2. frmChild & frmChild2 are child forms of frmParent.
    On frmChild2 I have DataGridView...
  37. Replies
    3
    Views
    4,877

    [2005]ListBox Background Image???

    Hi all,

    Is it possible to set image as a ListBoxs background??? ListBox doesn't have BackGroundImage property, so is it possible to be done?

    please help,
    sweet_dreams
  38. Replies
    4
    Views
    584

    Re: [2005] XML Issue

    Hi EROC,

    if you want to get the first hit you can use for example such a code:


    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    ...
  39. Replies
    5
    Views
    604

    Re: empty field

    please remember to tick as RESOLVED (if it is resolved of course) :wave:
  40. Replies
    5
    Views
    604

    Re: empty field

    Hi,


    if IsDBNull(recordset(1)) then
    bla bla bla
    end if


    this should solve your problem,
Results 1 to 40 of 192
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width