+ Reply to Thread
Results 1 to 4 of 4

Hmm my code seems to be playing up, any ideas...

  1. #1
    Registered User
    Join Date
    04-18-2024
    Location
    England
    MS-Off Ver
    365
    Posts
    2

    Question Hmm my code seems to be playing up, any ideas...

    So basically the code below is to help me automate a repetitive task.

    However for some reason the only part not working as it should is the function where it changes K column from TRUE/FALSE to 1/0 accordingly...any ideas.. Thanks

    Please Login or Register  to view this content.
    Last edited by mrebzz; 04-19-2024 at 03:16 PM. Reason: Update

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,617

    Re: Hmm my code seems to be playing up, any ideas...

    One in quotes (i.e., "1") is a character, not a number. "TRUE" in quotes is a character string typed in manually, not the Boolean result of a formula. I don't know which you are dealing with since there is no sample file
    Please Login or Register  to view this content.
    Last edited by protonLeah; 04-19-2024 at 04:02 PM.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    04-18-2024
    Location
    England
    MS-Off Ver
    365
    Posts
    2

    Re: Hmm my code seems to be playing up, any ideas...

    Correct

    I am just basically cleaning some excel data.TRUE (text, Capitals) i just want this to be changed to the number 1. again this can be a string .. its irrelevant in this :D haha thanks for all the help

  4. #4
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,229

    Re: Hmm my code seems to be playing up, any ideas...

    Or, see
    Please Login or Register  to view this content.
    Error handling for text values in a column.

    Or without the loop:
    Please Login or Register  to view this content.
    But will convert the text to an error value.

    Artik

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Run next lines of code while voice still playing
    By Kelly mort in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-02-2019, 08:23 PM
  2. Playing code after a section
    By ukdjaj in forum Word Programming / VBA / Macros
    Replies: 6
    Last Post: 02-06-2014, 06:21 PM
  3. [SOLVED] Like some ideas on improving code on long IF statement used in VBA code please
    By dawatcher in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2013, 01:44 PM
  4. Playing Sound file without pausing code
    By beat in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-17-2013, 05:48 AM
  5. [SOLVED] playing an alert sound at the end of code running
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-07-2012, 11:07 AM
  6. VBA code for playing wav on MAC os
    By matrex in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2011, 11:54 AM
  7. Problem with playing sound code
    By EMoe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-05-2005, 08:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1