If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Why This Happening

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-26-11, 02:41
myle myle is offline
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,143
Why This Happening

in M14 of One sheet I have

Timber piles; weatherboard exterior; corrugated metal roof; timber window joinery; timber floor; lined with plaster board (some double gibbed), lam. hardboard, timber; plain kitchen; bathroom; open plan kitchen and dining; 4 offices; separate laundry; front covered veranda; rear timber deck & ramp

then my code

ToHere = MainINS.Range("BU_1").Offset(-3, 0).Address

MainINS.Range(ToHere).value = OldINS.Range("M14").value

but it only

Timber piles; weatherboard exterior; corrugated metal roof; timber window joinery; timber floor; lined with plaster board (some double gibbed), lam. hardboard, timber; plain kitchen; bathroom; open plan kitchen and dining; 4 offices; separate laundry; fro

its Drop the "nt covered veranda; rear timber deck & ramp"

any Ideas I'm stump
and how can I fix it
__________________
hope this help

See clear as mud


StePhan McKillen
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment:
Access based on my own environment: DAO3.6/A97/A2000/A2003
VB based on my own environment: vb6 sp5
ASP based on my own environment: 5.6
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
MYLE
Reply With Quote
  #2 (permalink)  
Old 08-26-11, 06:21
myle myle is offline
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,143
Its a excel thing it can only do 255 other wise it get trancated

BUT after 3 hours of hunting around the net and thinking out side the square

It a bit long winded but it works

Windows(workingfile).Activate

OldINS.Range("M14").Select

Selection.Copy

Windows(masterfile).Activate

Tohere = MainINS.Range("BU_1").Offset(-3, 0).Address

MainINS.Range(Tohere).Select

Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False

that copy the text in ok with out dropping anything

but then that casuse a other Problem

coping the newly created Sheet to a file
then when it saved it would drop the text again
that p me off

so

Sheets("Insurance").Select
Dim Longtxt As String * 600 'old old school of coding didn't think it would work ok if more than 600 then im screwed
Longtxt = Range("c132").value
Sheets("Insurance").Copy
ActiveWorkbook.SaveAs FilePath, xlWorkbookNormal, "", "", False, False
Range("C132").value = Longtxt
ActiveWorkbook.Save

XlNormal would drop the text
xlWorkbookNormal would keep the text

Hope this save someone else 3 hours work
__________________
hope this help

See clear as mud


StePhan McKillen
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment:
Access based on my own environment: DAO3.6/A97/A2000/A2003
VB based on my own environment: vb6 sp5
ASP based on my own environment: 5.6
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
MYLE

Last edited by myle; 08-26-11 at 06:34. Reason: Spelling
Reply With Quote
  #3 (permalink)  
Old 08-29-11, 17:59
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
Hi Myle

What version of Excel are you using and what workbook format (eg Excel 97-2003 Workbook or MS Excel 5.0/95 Workbook) is it?
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On