Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default paste values in blank cell

I want to add some data from tab B to tab A. I was to past the values on tab
B below the last row on tab A. the problem is that when i do my macro I
can't figure out how to select the last emply cell in colum b. the way i have
it now, it's pasting values as of B7 and I want it below b7 or whatever is
the last empty cell in column b ...make sense? any ideas?

Sub ADD_to_Month()
'
' ADD_to_Month Macro
' Macro recorded 6/2/2008 by Mayte
'

'
Range("C2").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Sheets("Tab A").Select
Selection.End(xlDown).Select
Range("B7").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("A1").Select
End Sub
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default paste values in blank cell

I tried it but it's not pasting the data from tab b2 into tab a

"Mayte" wrote:

I want to add some data from tab B to tab A. I was to past the values on tab
B below the last row on tab A. the problem is that when i do my macro I
can't figure out how to select the last emply cell in colum b. the way i have
it now, it's pasting values as of B7 and I want it below b7 or whatever is
the last empty cell in column b ...make sense? any ideas?

Sub ADD_to_Month()
'
' ADD_to_Month Macro
' Macro recorded 6/2/2008 by Mayte
'

'
Range("C2").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Sheets("Tab A").Select
Selection.End(xlDown).Select
Range("B7").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("A1").Select
End Sub

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default paste values in blank cell

thanks ....

it works but it put a number "1" below cell in column b of tab A ..how do i
get all data from tab B into A?

"Don Guillett" wrote:

IF?? you are in TabB at the time and you have data as described then this
will work. I have modified to suit your post.

Sub copyvaluetoothersheet()
With Sheets("Tab A")
lr = .Cells(Rows.Count, "b").End(xlUp).Row + 1
.Cells(lr, "b").Value = _
Range("c2").End(xlDown).End(xlToRight).Value
End With
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Mayte" wrote in message
...
I tried it but it's not pasting the data from tab b2 into tab a

"Mayte" wrote:

I want to add some data from tab B to tab A. I was to past the values on
tab
B below the last row on tab A. the problem is that when i do my macro I
can't figure out how to select the last emply cell in colum b. the way i
have
it now, it's pasting values as of B7 and I want it below b7 or whatever
is
the last empty cell in column b ...make sense? any ideas?

Sub ADD_to_Month()
'
' ADD_to_Month Macro
' Macro recorded 6/2/2008 by Mayte
'

'
Range("C2").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Sheets("Tab A").Select
Selection.End(xlDown).Select
Range("B7").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("A1").Select
End Sub





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default paste values in blank cell

Is this what you want to copy the range instead of just the last cell?

Sub ci2()
With Sheets("Tab A")
lr = .Cells(Rows.Count, "b").End(xlUp).Row + 1
Range("c2", Range("c2").End(xlDown).End(xlToRight)).Copy
..Cells(lr, "b").PasteSpecial Paste:=xlValues
End With
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Mayte" wrote in message
...
thanks ....

it works but it put a number "1" below cell in column b of tab A ..how do
i
get all data from tab B into A?

"Don Guillett" wrote:

IF?? you are in TabB at the time and you have data as described then this
will work. I have modified to suit your post.

Sub copyvaluetoothersheet()
With Sheets("Tab A")
lr = .Cells(Rows.Count, "b").End(xlUp).Row + 1
.Cells(lr, "b").Value = _
Range("c2").End(xlDown).End(xlToRight).Value
End With
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Mayte" wrote in message
...
I tried it but it's not pasting the data from tab b2 into tab a

"Mayte" wrote:

I want to add some data from tab B to tab A. I was to past the values
on
tab
B below the last row on tab A. the problem is that when i do my macro
I
can't figure out how to select the last emply cell in colum b. the way
i
have
it now, it's pasting values as of B7 and I want it below b7 or
whatever
is
the last empty cell in column b ...make sense? any ideas?

Sub ADD_to_Month()
'
' ADD_to_Month Macro
' Macro recorded 6/2/2008 by Mayte
'

'
Range("C2").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Sheets("Tab A").Select
Selection.End(xlDown).Select
Range("B7").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("A1").Select
End Sub




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default paste values in blank cell

ACE !!! it's perfect ....thanks a lot !!

Cheers,
Mayte

"Mayte" wrote:

I want to add some data from tab B to tab A. I was to past the values on tab
B below the last row on tab A. the problem is that when i do my macro I
can't figure out how to select the last emply cell in colum b. the way i have
it now, it's pasting values as of B7 and I want it below b7 or whatever is
the last empty cell in column b ...make sense? any ideas?

Sub ADD_to_Month()
'
' ADD_to_Month Macro
' Macro recorded 6/2/2008 by Mayte
'

'
Range("C2").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Sheets("Tab A").Select
Selection.End(xlDown).Select
Range("B7").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("A1").Select
End Sub

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 have cell values of 0 showing as blank ALEX Excel Worksheet Functions 9 February 8th 07 06:57 PM
How do I paste multiple values into one cell? RJUN Excel Worksheet Functions 11 December 28th 06 05:32 PM
paste to next blank cell/row Yvette Excel Worksheet Functions 1 June 9th 06 03:34 PM
paste formula to each cell in a column without changing values mg_sv_r Excel Worksheet Functions 1 May 24th 06 11:30 AM
how do I generate a blank cell when I paste link; comes up - or 0 MitchP Excel Discussion (Misc queries) 3 July 22nd 05 07:09 PM


All times are GMT +1. The time now is 08:34 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"