hi all,
does anyone know hoe to translate it for use for the function sendkey
in excel?
hi all,
does anyone know hoe to translate it for use for the function sendkey
in excel?
I would avoid SendKeys at all costs. If you need to array-enter a
formula from VBA, use the FormulaArray property. E.g.,
Range("A1").FormulaArray = "=SUM(B1:B10)"
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
<yaniv.dg@gmail.com> wrote in message
news:1153139722.545859.48500@p79g2000cwp.googlegroups.com...
> hi all,
> does anyone know hoe to translate it for use for the function
> sendkey
> in excel?
>
yes,i know but my problem is that the formulaarray doesnt accept more
the 255 characters and my formulaarray is passing thats why,im first
using usual formula and then call sendkey,this is how i can bypass this
problematic issue
Chip Pearson wrote:
> I would avoid SendKeys at all costs. If you need to array-enter a
> formula from VBA, use the FormulaArray property. E.g.,
>
> Range("A1").FormulaArray = "=SUM(B1:B10)"
>
>
> --
> Cordially,
> Chip Pearson
> Microsoft MVP - Excel
> Pearson Software Consulting, LLC
> www.cpearson.com
>
>
>
> <yaniv.dg@gmail.com> wrote in message
> news:1153139722.545859.48500@p79g2000cwp.googlegroups.com...
> > hi all,
> > does anyone know hoe to translate it for use for the function
> > sendkey
> > in excel?
> >
Here's a solution:
http://www.dailydoseofexcel.com/arch...rmulas-in-vba/
NickHK
<yaniv.dg@gmail.com> wrote in message
news:1153205368.820335.82410@m73g2000cwd.googlegroups.com...
> yes,i know but my problem is that the formulaarray doesnt accept more
> the 255 characters and my formulaarray is passing thats why,im first
> using usual formula and then call sendkey,this is how i can bypass this
> problematic issue
> Chip Pearson wrote:
> > I would avoid SendKeys at all costs. If you need to array-enter a
> > formula from VBA, use the FormulaArray property. E.g.,
> >
> > Range("A1").FormulaArray = "=SUM(B1:B10)"
> >
> >
> > --
> > Cordially,
> > Chip Pearson
> > Microsoft MVP - Excel
> > Pearson Software Consulting, LLC
> > www.cpearson.com
> >
> >
> >
> > <yaniv.dg@gmail.com> wrote in message
> > news:1153139722.545859.48500@p79g2000cwp.googlegroups.com...
> > > hi all,
> > > does anyone know hoe to translate it for use for the function
> > > sendkey
> > > in excel?
> > >
>
Guys, I have used below function and it works perfect, however it takes a while to take effect(because of for loop)
<code lang="vb">
Function CreateArrayFunction(ByVal sRange As String, formula As String) As Boolean
For Each oCell In Worksheets("sheetName").Range(sRange)
oCell.FormulaArray = formula
Next oCell
End Function
</code>
does anyone knows alternative to this?
Thanks
-N
Why you need a function for this??
You can assign it directly in your Macro code itself
![]()
Please Login or Register to view this content.
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
I tried 'FormulaArray' with 'Range' but this has 255 character limitation. This limitation is applicable to my function as well![]()
Any clue on this?
I have tried solution given on http://dailydoseofexcel.com/archives...comment-694082
but this does not work for me.
Hm... I mis-interpreted the question and apologies for that.
Sorry I don't have any suggestion for this![]()
linok
This is a 8 years old thread!! So pls take a look to forum rules, because:
Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.
If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.
Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
Regards
Fotis.
-This is my Greek whisper to Europe.
--Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.
Advanced Excel Techniques: http://excelxor.com/
--KISS(Keep it simple Stupid)
--Bring them back.
---See about Acropolis of Athens.
--Visit Greece.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks