Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default where or how do i create a function that ive been given?


ive been given a function in text but i dont know where to enter it??

--
leme
-----------------------------------------------------------------------
lemel's Profile: http://www.excelforum.com/member.php...fo&userid=1594
View this thread: http://www.excelforum.com/showthread.php?threadid=27494

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default where or how do i create a function that ive been given?

With only one workbook open,

do Alt+F11 and this should take you to the Visual Basic Editor (VBE). in
the menu there, choose Insert=Module. Paste the code in that module.

Now do Alt+F11 to get back to excel.

--
Regards,
Tom Ogilvy

"lemel" wrote in message
...

ive been given a function in text but i dont know where to enter it???


--
lemel
------------------------------------------------------------------------
lemel's Profile:

http://www.excelforum.com/member.php...o&userid=15944
View this thread: http://www.excelforum.com/showthread...hreadid=274944



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default where or how do i create a function that ive been given?


Continuing this line of thought...
I am trying to get Excel to automatically page break at the end of
group of data specific to a person. The # of rows is not fixed
depending upon how much data we have for the person. The first colum
is dedicated to the name.
I am desperately trying to figure out VBA. I found this formula i
another help message in this forum:
Sub Insert_Page_Breaks()
'set to look for teachers names in column A
'will put a page break when the name changes
Set rng = Range(Cells(2, 1), _
Cells(Rows.Count, 1).End(xlUp))
For Each cell In rng
If Trim(cell.Value) < _
Trim(cell.Offset(-1, 0).Value) Then
ActiveSheet.HPageBreaks.Add cell
End If
Next
End Sub

It is supposed to do the trick. Based on what I read in the 2nd pos
of this thread, I pasted it in. It doesn't print out with th
automatic page breaks.
Do I have to activate it in some way? Or does it just work on its own
I can't find much understandable help on VBA and would sure appreciat
a simple explanation of how it works. Thanks! Kimberl

--
Kimberl
-----------------------------------------------------------------------
Kimberly's Profile: http://www.excelforum.com/member.php...nfo&userid=732
View this thread: http://www.excelforum.com/showthread.php?threadid=27494

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default where or how do i create a function that ive been given?


In order to run that code Kimberly you'd have to go to your spreadshee
and go to tools/macros/maros, then look for your macr
"Insert_Page_Breaks" and press the run button

--
DK
-----------------------------------------------------------------------
DKY's Profile: http://www.excelforum.com/member.php...fo&userid=1451
View this thread: http://www.excelforum.com/showthread.php?threadid=27494

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default where or how do i create a function that ive been given?


...........

--
Kimberl
-----------------------------------------------------------------------
Kimberly's Profile: http://www.excelforum.com/member.php...nfo&userid=732
View this thread: http://www.excelforum.com/showthread.php?threadid=27494



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default where or how do i create a function that ive been given?


anytime, just glad i can finally help out here :

--
DK
-----------------------------------------------------------------------
DKY's Profile: http://www.excelforum.com/member.php...fo&userid=1451
View this thread: http://www.excelforum.com/showthread.php?threadid=27494

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create an IF function Cindygirl Excel Worksheet Functions 1 March 25th 09 09:56 PM
How to create a function FrozenRope Excel Worksheet Functions 2 November 25th 08 12:20 AM
how to create function bsatstudent5 Excel Worksheet Functions 2 January 29th 07 02:38 PM
How to create a function galsaba Excel Worksheet Functions 2 January 29th 07 11:29 AM
create function Luc M Excel Worksheet Functions 2 December 24th 04 10:17 AM


All times are GMT +1. The time now is 05:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"