PC Review


Reply
 
 
Sherry
Guest
Posts: n/a
 
      1st Jun 2010
I have a message that pops up saying debug, then I double click and receive
this
can anybody help me with this. I want to just pull all by george onto
another spreadsheet call call Jon and the info is pulling from master name
Grace.

Private Sub Worksheet_Activate()
Call Sheet5.getvalues
Call Sheet5.SortRange1
End Sub
Sub getvalues()
lr = Application.Max(2, Cells(Rows.Count, 1).End(xlUp).Row)
'MsgBox lr
Rows("2:" & lr).ClearContents
With Worksheets("Grace")
slr = .Cells(Rows.Count, "a").End(xlUp).Row
'MsgBox slr
For L = 2 To slr
dlr = Cells(Rows.Count, "a").End(xlUp).Row + 1
' If .Cells(L, "L") = GEORGEL and not .cells(f, "F") = "Closed" Then
..Rows(f).Copy Rows(dlr)
If .Cells(L, "l") = GEORGE Then .Rows(F).Copy Rows(dlr)
Next L
End With
End Sub
Sub SortRange1()
--
Sherry
 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      1st Jun 2010
Sherry

Based on your code, I'm guessing you're working in Excel. This newsgroup
supports MS Access, the relational database.

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Sherry" <(E-Mail Removed)> wrote in message
news:9259A68D-A31E-4BA9-BED8-(E-Mail Removed)...
> I have a message that pops up saying debug, then I double click and
> receive
> this
> can anybody help me with this. I want to just pull all by george onto
> another spreadsheet call call Jon and the info is pulling from master name
> Grace.
>
> Private Sub Worksheet_Activate()
> Call Sheet5.getvalues
> Call Sheet5.SortRange1
> End Sub
> Sub getvalues()
> lr = Application.Max(2, Cells(Rows.Count, 1).End(xlUp).Row)
> 'MsgBox lr
> Rows("2:" & lr).ClearContents
> With Worksheets("Grace")
> slr = .Cells(Rows.Count, "a").End(xlUp).Row
> 'MsgBox slr
> For L = 2 To slr
> dlr = Cells(Rows.Count, "a").End(xlUp).Row + 1
> ' If .Cells(L, "L") = GEORGEL and not .cells(f, "F") = "Closed" Then
> .Rows(f).Copy Rows(dlr)
> If .Cells(L, "l") = GEORGE Then .Rows(F).Copy Rows(dlr)
> Next L
> End With
> End Sub
> Sub SortRange1()
> --
> Sherry



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access VBA - declared an Excel VBA reserved word and VBA/Access won't give it back! ultar6@gmail.com Microsoft Access 1 16th Jun 2007 05:11 AM
using vba to update vba form jrh Microsoft Excel Programming 3 23rd Sep 2003 11:11 PM
Re: VBA code to delete VBA code in another Workbook Chip Pearson Microsoft Excel Programming 0 15th Sep 2003 03:54 PM
Re: Excel 2000 Windows VBA vs. Mac Excel 2001 VBA Harald Staff Microsoft Excel Programming 0 5th Sep 2003 07:45 AM
VBA - Programmatically Change VBA Project Password Glen Microsoft Excel Programming 1 2nd Sep 2003 05:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:43 AM.