LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #14   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Having trouble with this code

Hi Willem

Use the value copy example then
http://www.rondebruin.nl/copy2.htm

See the info below the macro


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Willem" wrote in message ...
Help me when I coppy info from multipil worksheets to asummary one some of
the info are only formulas and not the data. How can i fix this?

"Nolaughmtr" wrote:

I get an error at " <<<<" when i try an run it again. basically im
trying to coppy information from one page to another and then splitting the
fist row on the second page. I would also like help on trying to add more
information from the 1st sheet to the second sheet. its not constant
information so im a bit confused on how to do it. If anyone wants to look at
the file please let me know because I know this is pretty confusing.

Sub copy_1()
Dim SourceRange As Range, DestRange As Range
Dim DestSheet As Worksheet, Lr As Long

With Application
.ScreenUpdating = False
.EnableEvents = False
End With

'fill in the Source Sheet and range
Set SourceRange = Sheets("we 9-8-07").Range("F2:G93")

'Fill in the destination sheet and call the LastRow
'function to find the last row
Set DestSheet = Sheets("DIE STATUS")
Lr = DestSheet.Cells(Rows.count, "A").End(xlUp).Row

'With the information from the LastRow function we can
'create a destination cell and copy/paste the source range
Set DestRange = DestSheet.Range("A" & Lr + 1)
SourceRange.COPY DestRange

With Application
.ScreenUpdating = True
.EnableEvents = True
End With

Worksheets("DIE STATUS").Activate
cellCount = 2
With Worksheets("Die status")
Do While Cells(cellCount, "A") < ""

Number = Val(Cells(cellCount, "A"))
Text = Cells(cellCount, "A")
Text = Trim(Mid(Text, InStr(Text, " ")))<<<<

.Cells(cellCount, "A") = Number
.Cells(cellCount, "C") = Text
cellCount = cellCount + 1


Loop
End With




End Sub

 
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
IM A NEW USER HAVING TROUBLE WITH CODE [email protected] Excel Programming 1 April 16th 07 10:00 AM
Trouble with code JOUIOUI Excel Programming 3 February 27th 07 05:01 PM
Trouble with Code, but only sometimes JOUIOUI Excel Programming 0 December 15th 06 01:18 PM
Trouble with this code JOUIOUI Excel Programming 3 November 7th 06 12:35 AM
Trouble with this code JOUIOUI Excel Programming 4 June 11th 06 04:49 PM


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