![]() |
#1
|
|||
|
|||
![]()
The goal of the VBA macro is to extract the text from the first cell and assign it to a variable (see attached document). The problem that I’m having is that I can’t get it to retain the superscripted letter ‘s’ after the word ‘test’.
TIA, Robert Matthews Code:
Sub test() Dim varTextString As Variant varTextString = ActiveDocument.Tables(1).Cell(Row:=1, Column:=1) varTextString = Left(varTextString, Len(varTextString) - 2) MsgBox varTextString End sub() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Carolin | Word VBA | 3 | 12-14-2014 04:01 AM |
![]() |
norwood | Word VBA | 2 | 01-31-2014 01:26 PM |
Extract Min and highlight cell from source | LeilaniMerle | Excel | 3 | 01-26-2014 11:05 PM |
Conditional Formatting Expiration Dates Based on Text in Adjacent Cell | Frogggg | Excel | 1 | 10-25-2011 08:44 PM |
![]() |
StarWeaver | Excel | 1 | 03-02-2010 01:41 PM |