Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default How would I modify the following?

Sub MinReport()
RC=
Sheets("15mintest").Select
Range("A2:G2").Select
Selection.Copy
ActiveCell.SpecialCells(xlLastCell).Select
Range().Select
ActiveSheet.Paste
Sheets("Master").Select
End Sub

What I want to do is make it so it does not interfer with what sheet I am
working on now.
Currently, it will select the sheet, paste data and then go back to Master
Can I do this with out interfering with the screen I am on, and Not
"selecting" the 15mintest sheet, just have it paste at the bottom of
15mintest?

Thanks
Bruce



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default How would I modify the following?

one way:

Public Sub MinReport()
With Sheets("15mintest").Range("A2:G2")
.Parent.Range("A" & Rows.Count).End(xlUp).Offset( _
1, 0).Resize(1, 7).Value = .Value
End With
End Sub


In article <WTCnb.52055$Tr4.108464@attbi_s03,
"BruceJ" wrote:

Sub MinReport()
RC=
Sheets("15mintest").Select
Range("A2:G2").Select
Selection.Copy
ActiveCell.SpecialCells(xlLastCell).Select
Range().Select
ActiveSheet.Paste
Sheets("Master").Select
End Sub

What I want to do is make it so it does not interfer with what sheet I am
working on now.
Currently, it will select the sheet, paste data and then go back to Master
Can I do this with out interfering with the screen I am on, and Not
"selecting" the 15mintest sheet, just have it paste at the bottom of
15mintest?

Thanks
Bruce



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default How would I modify the following?

Bruce,

Not too sure of how this is working - but amend this code to copy from
one sheet and paste to another without selecting anything... And it doesn't
matter what the active sheet is...

Sheets("Sheet1").Range("A2:G2").Copy _
Destination:= Sheets("Sheet2").Range("A1")

--
sb
"BruceJ" wrote in message
news:WTCnb.52055$Tr4.108464@attbi_s03...
Sub MinReport()
RC=
Sheets("15mintest").Select
Range("A2:G2").Select
Selection.Copy
ActiveCell.SpecialCells(xlLastCell).Select
Range().Select
ActiveSheet.Paste
Sheets("Master").Select
End Sub

What I want to do is make it so it does not interfer with what sheet I am
working on now.
Currently, it will select the sheet, paste data and then go back to Master
Can I do this with out interfering with the screen I am on, and Not
"selecting" the 15mintest sheet, just have it paste at the bottom of
15mintest?

Thanks
Bruce





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default How would I modify the following?

I have tried the code (and also mine) and both of them don't seem to work
when called from the program! If I make a macro, and press the hot key, it
works, but when I move it into the actual CODE, it does not. Any ideas? It
makes it to the module, both msgboxes come up...


Public Sub showtimer()
MsgBox ("Notes Added!")
With Sheets("15min").Range("A2:G2")
.Parent.Range("A" & Rows.Count).End(xlUp).Offset(1, 0).Resize(1,
7).Value = .Value
End With
incrementTimer
lasttime = Sheets("15min").Range("A" & Rows.Count - 1) ' to see if new
records were added....
MsgBox (lasttime)
Call OntimeManager("ADD", nowplus, "showtimer", nowplus1)
End Sub

"J.E. McGimpsey" wrote in message
...
one way:

Public Sub MinReport()
With Sheets("15mintest").Range("A2:G2")
.Parent.Range("A" & Rows.Count).End(xlUp).Offset( _
1, 0).Resize(1, 7).Value = .Value
End With
End Sub


In article <WTCnb.52055$Tr4.108464@attbi_s03,
"BruceJ" wrote:

Sub MinReport()
RC=
Sheets("15mintest").Select
Range("A2:G2").Select
Selection.Copy
ActiveCell.SpecialCells(xlLastCell).Select
Range().Select
ActiveSheet.Paste
Sheets("Master").Select
End Sub

What I want to do is make it so it does not interfer with what sheet I

am
working on now.
Currently, it will select the sheet, paste data and then go back to

Master
Can I do this with out interfering with the screen I am on, and Not
"selecting" the 15mintest sheet, just have it paste at the bottom of
15mintest?

Thanks
Bruce





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
Modify Before Send andiam24 Excel Discussion (Misc queries) 10 May 8th 09 12:55 PM
Trying to modify a list trofie99 Excel Discussion (Misc queries) 1 April 6th 09 02:51 PM
Modify a UDF please? Excel Helps Excel Worksheet Functions 2 January 23rd 08 09:40 AM
Modify a UDF please? Excel Helps Excel Worksheet Functions 0 January 23rd 08 12:10 AM
Modify width Peter Kwong Setting up and Configuration of Excel 4 February 10th 06 03:37 PM


All times are GMT +1. The time now is 06:11 PM.

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

About Us

"It's about Microsoft Excel"