+ Reply to Thread
Results 1 to 4 of 4

Formula problems!!

  1. #1
    Registered User
    Join Date
    01-22-2006
    Posts
    2

    Exclamation Formula problems!!

    Hi all,

    I have been trying and trying but I can not get this to work :

    somerange.Formula = "=IF('C03.01 Process quotations'!$E$6="""";"""";'C03.01 Process quotations'!$E$6)"

    So if the source is blank, leave blank otherwise put value in there.
    First I had only:

    somerange.Formula = "='C03.01 Process quotations'!$E$6"

    which works, but leaves zeros when source is has a blank value.

    Thanks

  2. #2
    Dave Peterson
    Guest

    Re: Formula problems!!

    VBA is USA centric.

    Try changing your semicolons to commas.



    ABEone wrote:
    >
    > Hi all,
    >
    > I have been trying and trying but I can not get this to work
    > :
    >
    > somerange.Formula = "=IF('C03.01 Process
    > quotations'!$E$6="""";"""";'C03.01 Process quotations'!$E$6)"
    >
    > So if the source is blank, leave blank otherwise put value in there.
    > First I had only:
    >
    > somerange.Formula = "='C03.01 Process quotations'!$E$6"
    >
    > which works, but leaves zeros when source is has a blank value.
    >
    > Thanks
    >
    > --
    > ABEone
    > ------------------------------------------------------------------------
    > ABEone's Profile: http://www.excelforum.com/member.php...o&userid=30715
    > View this thread: http://www.excelforum.com/showthread...hreadid=503826


    --

    Dave Peterson

  3. #3
    Bob Phillips
    Guest

    Re: Formula problems!!

    It works for me, what do you get?

    --

    HTH

    Bob Phillips

    (remove nothere from the email address if mailing direct)

    "ABEone" <ABEone.221xhb_1137959402.0593@excelforum-nospam.com> wrote in
    message news:ABEone.221xhb_1137959402.0593@excelforum-nospam.com...
    >
    > Hi all,
    >
    > I have been trying and trying but I can not get this to work
    > :
    >
    > somerange.Formula = "=IF('C03.01 Process
    > quotations'!$E$6="""";"""";'C03.01 Process quotations'!$E$6)"
    >
    > So if the source is blank, leave blank otherwise put value in there.
    > First I had only:
    >
    > somerange.Formula = "='C03.01 Process quotations'!$E$6"
    >
    > which works, but leaves zeros when source is has a blank value.
    >
    > Thanks
    >
    >
    > --
    > ABEone
    > ------------------------------------------------------------------------
    > ABEone's Profile:

    http://www.excelforum.com/member.php...o&userid=30715
    > View this thread: http://www.excelforum.com/showthread...hreadid=503826
    >




  4. #4
    Registered User
    Join Date
    01-22-2006
    Posts
    2
    Quote Originally Posted by Dave Peterson
    VBA is USA centric.

    Try changing your semicolons to commas.



    Dave Peterson
    Your are my hero today!!! I have had the same issues with Access, but there I do do everything in VBA with comma's. Thanks a lot!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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